Help! Having problems with solve function

Help! Having problems with solve function - Сообщения

#1 Опубликовано: 23.11.2014 00:49:08
critzker

critzker

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

Группа: User

I'm trying to solve this equation:
3t^3-2t+5=0 using the solve function
solve(3t^3-2t+5=0,t)
but when I type t= to solve it, it doesnt give me an answer, just t= the black box
And yes, I am using the Boolean in the equation and in solve so I honestly don't know what's wrong? It won't give me the answers for any solve questions!
Please help ASAP!
Thanks in advance
#2 Опубликовано: 23.11.2014 01:51:32
Mike Kaganski

Mike Kaganski

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

Группа: User

Use 3*t, not 3t
С уважением, Михаил Каганский
#3 Опубликовано: 23.11.2014 06:46:27
brotjob

brotjob

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

Группа: User

Wrote

Use 3*t, not 3t



You are not familiar with Smath. The * is inserted automatically when typing.

You (critzker) should use the Maxima plugin, which is part of the portable version. See example below.
Solve-01.png
#4 Опубликовано: 23.11.2014 07:18:47
Mike Kaganski

Mike Kaganski

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

Группа: User

Wrote

You are not familiar with Smath. The * is inserted automatically when typing.



Are you sure?
Just try to paste the OP code to SMath, and see that 3t is inserted as is, not like "3*t". The thing you mention only applies to interactive typing. OP hasn't specified the method he used in the first place.

If used properly, everything works without maxima:

solve((3*t)^3-2*t+5≡0,t)=-0.6132
С уважением, Михаил Каганский
#5 Опубликовано: 23.11.2014 16:57:52
brotjob

brotjob

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

Группа: User

sorry I missed the square three which makes everything much easier.
#6 Опубликовано: 23.11.2014 21:06:55
Mike Kaganski

Mike Kaganski

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

Группа: User

Wrote


solve(3t^3-2t+5=0,t)
but when I type t= to solve it, it doesnt give me an answer, just t= the black box



I'm afraid I didn't understand your problem the first time.
I suppose you do the following:
type "solve(3t^3-2t+5=0,t)"
go to new line
type "t="
and wait for the answer.

That's not correct. solve is not a procedure that modifies its argument t; it is a function that returns a number, ant that number may (or may not) be assigned to a variable.

You need to have the following:
"t:=solve(3*t^3-2*t+5=0,t)"
then your "t=" will give you the answer (in this form, it will be 2.743).
С уважением, Михаил Каганский
#7 Опубликовано: 24.11.2014 04:41:10
brotjob

brotjob

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

Группа: User

You should definitely use Maxima since the Smath solver misses the complex solutions.
solve_square3.png
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений