Solve error

Solve error - error x - not defined in Solve function - Messages

#1 Posted: 3/26/2014 10:49:45 AM
PKlijn

PKlijn

0 likes in 4 posts.

Group: User

I'm trying to solve a equation for x but I'm getting an error (x - not defined) what am I doing wrong?



see the attached screen shot.

Best regards,

Peter

Solve((ρ.M*h.M/x*(r+h.M/2)^2+ρ.B*(r+x/2)^2)*ω.max^2≡σ.ttB_max/{3*f.RS}-E.B*((h.M*α.M+h.R*α.R)/r.o-α.*{ΔT.max-ΔT.min}/2,x)=#@#

Knipsel.JPG
#2 Posted: 3/26/2014 11:14:51 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

I think the answer is too big for visualisation.
Russia ☭ forever, Viacheslav N. Mezentsev
#3 Posted: 3/26/2014 3:13:51 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

I'm trying to solve a equation for x but I'm getting an error (x - not defined) what am I doing wrong?


You need to ask for symbolic optimization. The solutions are returned as a list of equations x=..., in your case three of them, and yes, they are really big but they display within seconds.

See the handbook-page "Function index"> "Solve()" to see how to assign selected solutions to variables.
solve.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Radovan Omorjan 3/28/2014 2:28:00 AM
#4 Posted: 3/26/2014 3:25:17 PM
Henrique

Henrique

1 likes in 17 posts.

Group: User

Martin, i'm trying do call a maxima function "elliptic_kc()", but it returns an error.

Sem título.jpg
#5 Posted: 3/26/2014 5:30:24 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

On my computer, Maxima 5.31.1-1 gives the same error message in wxMaxima as reported by you. Thus, this question might be directed to some maxima forum.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 3/26/2014 5:55:41 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

for m = 1 the function may be divergent (x=±π/2):

[MATH eng]elliptic_kc(m):int(1/sqrt(1-m*sin(x)^2),x,0,π/2)[/MATH]

The Maxima manual said:
Quote

For certain values of m, the value of the integral is known in terms of Gamma functions. Use makegamma to evaluate them.



maxima: elliptic_kc
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Martin Kraska 3/26/2014 8:05:00 PM
#7 Posted: 3/26/2014 8:07:54 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Thanks, Davide, for having a closer look.
elliptic.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Posted: 3/27/2014 9:16:41 AM
Henrique

Henrique

1 likes in 17 posts.

Group: User

Thank you all. It was a subtle bug, I just do not let the sine equal to 1 to find the elliptic integral. Anyway, now it runs.
Elastica.sm (18 KiB) downloaded 49 time(s).
1 users liked this post
Martin Kraska 3/27/2014 10:52:00 AM
#9 Posted: 3/27/2014 10:50:40 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Here is a version using the parametric plot capabilities of Draw2D().
Elastica.sm (19 KiB) downloaded 66 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Radovan Omorjan 3/28/2014 2:28:00 AM
#10 Posted: 3/27/2014 4:24:25 PM
PKlijn

PKlijn

0 likes in 4 posts.

Group: User

Wrote

Wrote

I'm trying to solve a equation for x but I'm getting an error (x - not defined) what am I doing wrong?


You need to ask for symbolic optimization. The solutions are returned as a list of equations x=..., in your case three of them, and yes, they are really big but they display within seconds.

See the handbook-page "Function index"> "Solve()" to see how to assign selected solutions to variables.



Can you send the Smath file, it is not clear to me how to assign the selected solutions to variables.
#11 Posted: 3/27/2014 11:10:07 PM
Henrique

Henrique

1 likes in 17 posts.

Group: User

Very good Martin. Awesome the power of Draw2D(). It reduced the processing time dramatically.
#12 Posted: 3/29/2014 4:00:28 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Can you send the Smath file, it is not clear to me how to assign the selected solutions to variables.




_Solve.sm (31 KiB) downloaded 83 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts