Interval

Interval - Сообщения

#1 Опубликовано: 27.10.2009 09:57:22
LordMike

LordMike

0 сообщений из 52 понравились пользователям.

Группа: User

Hey,

How would I specify an interval for a function?
Is an if absolutely needed?

Example:
solve(cos(x)=0, x)

I would like an answer between 0 and 2*PI.

In my calculator, it can be accomplished as such:
solve(cos(x)=0, x {0, 2*PI}) = 1.57...
#2 Опубликовано: 27.10.2009 10:19:35
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Just use 3 and 4 arguments:
[MATH]solve(cos(x);x;0;2*π)=mat(1,5707963;4,712389;2;1)[/MATH]
#3 Опубликовано: 27.10.2009 10:24:52
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Wrote

Hey,

How would I specify an interval for a function?
Is an if absolutely needed?

Example:
solve(cos(x)=0, x)

I would like an answer between 0 and 2*PI.

In my calculator, it can be accomplished as such:
solve(cos(x)=0, x {0, 2*PI}) = 1.57...


The range is specified as the third and fourth argument.
[MATH]solve(cos(x)≡0;x;0;2*π)=mat(1,5708;4,7124;2;1)[/MATH]
(Pay attention on Boolean equal to, and function argument separator - here at the forum we must us ";" with MATH tag, but you can use either ";" or "," depending on regional settings)
If you do not specify the root find range, it is defined by default in Tools=>Options=>Roots(range). If you keep say the range [-100,100], with solve(cos(x)=0, x)= you will have lots of roots there.

Regards,
Radovan

EDIT: BTW, you can visit this wiki page
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Опубликовано: 27.10.2009 10:25:11
LordMike

LordMike

0 сообщений из 52 понравились пользователям.

Группа: User

Wrote

Just use 3 and 4 arguments:
[MATH]solve(cos(x);x;0;2*π)=mat(1,5707963;4,712389;2;1)[/MATH]



Thanks
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений