How to solve these types of equations

How to solve these types of equations - Messaggi

#21 Pubblicato: 19/04/2021 16:43:29
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Maxima's solve seems to provide multiple yet not all solutions.

nonlinear_kr.png
nonlinear_kr.sm (8,26 KiB) scaricato 1164 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
Tuan Nguyen 20/04/2021 02:19:00
#22 Pubblicato: 19/04/2021 17:02:46
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

Maxima's solve seems to provide multiple yet not all solutions.


Interesting, cause maxima in linux terminal can find all solutions.
I have tried, wxMaxima (gui of maxima) can also find all of them.

2021-04-19_22-57.png

Wrote

Hello,

It should be careful if the equations are a bit more complicated.

As far as I know, al_nleqsolve() is the only solver in SMath which will solve nonlinear equations in a pure numerical fashion (excluding solvers from Maxima and Maple plugins).

This "numerical thing" was mentioned here many times - maybe to many.

Regards,
Radovan


This is a good demonstation, thanks for your reply.
Since he choose a nickname "newbie" I wanted to keep it simple.
There are a lot of solver in smath, all with their pros and cons.
Which is a good thing I guess, diversity is golden.
If you can't find a solution with a function try another one.
Trying through simpler to complex is the proper way, at least this is my opinion.

Regards
1 utenti hanno apprezzato questo post
Tuan Nguyen 20/04/2021 02:19:00
#23 Pubblicato: 19/04/2021 17:36:25
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

Maxima's solve seems to provide multiple yet not all solutions.


Could you please set optimization to symbolic, expand the matrix, then set to none again?
Maxima may have found all solutions but can't show because of matrix reduced view.
Three dot to expand matrix doesn't appear if optimization is selected to none.
This is a cosmetic bug if I had to make a statement.

Regards

1 utenti hanno apprezzato questo post
Martin Kraska 20/04/2021 17:46:00
#24 Pubblicato: 19/04/2021 19:59:16
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Maxima's solve seems to provide multiple yet not all solutions.


FindRoots is sensible to initial, like any other solvers.
Thus a good practice to let it breath by itself from initial
... then collect from visual sanity plot SS 6179.

FindRoots.PNG


1 utenti hanno apprezzato questo post
Tuan Nguyen 20/04/2021 02:19:00
#25 Pubblicato: 20/04/2021 16:06:05
Tuan Nguyen

Tuan Nguyen

0 apprezzamenti in 16 post.

Gruppo: User

Wrote

Wrote

If I have two non-linear equations with 2 unknowns x,y: f(x,y)=0 and g(x,y)=0. I know there are real roots and the ranges of the roots. How can I solve these in Smath?



1.f(x,y)=0 and g(x,y)=0 are implicit [= 0] in mathematical definition.
2. That they have real roots, you can't know in advance.
3. Solving in there means solving for their intersection
4. Visit this triplet solved.
Cheers ... Jean ... give your functions..

Contour SOLVE AstroidHyperbola.sm (22,66 KiB) scaricato 1260 volta(e).



Thank you Jean. Please see attached my smath file. I tried all options but all gave me errors. The current one didn't give me any errors but took forever to solve (or ever able to solve it).Complex Equations.sm (47,29 KiB) scaricato 1241 volta(e).
#26 Pubblicato: 20/04/2021 17:46:00
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

Wrote

Maxima's solve seems to provide multiple yet not all solutions.


Could you please set optimization to symbolic, expand the matrix, then set to none again?
Maxima may have found all solutions but can't show because of matrix reduced view.
Three dot to expand matrix doesn't appear if optimization is selected to none.
This is a cosmetic bug if I had to make a statement.

Regards



You are right, there seems to be a display bug. Thank you for pointing this out.

Optimization None doesn't properly co-operate with result ellipsis mechanism.
The resize handle is missing.

This is bad in two ways. First, you can't change the amount of displayed elements, second, you can't even see that there are suppressed elements.

nonlinear_kr1.png
nonlinear_kr1.sm (21,79 KiB) scaricato 1184 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#27 Pubblicato: 20/04/2021 19:35:57
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Thank you Jean. Please see attached my smath file. I tried all options but all gave me errors. The current one didn't give me any errors but took forever to solve (or ever able to solve it)


Try to plot something as soon as possible.
Here, it computes in few seconds but complains
too many not defined, units don't match, result above max ...
#28 Pubblicato: 21/04/2021 08:41:04
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Try to plot something as soon as possible.
Here, it computes in few seconds but complains
too many not defined, units don't match, result above max ...



MonsterBig.PNG

Complex Equations (1 to be doctored).sm (59,76 KiB) scaricato 1263 volta(e).
1 utenti hanno apprezzato questo post
Tuan Nguyen 21/04/2021 12:42:00
#29 Pubblicato: 21/04/2021 11:36:50
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

.... download this same updated in split part.
At this point make the Units match.
I don't doctor units, they are against maths and my conviction.
Keep working hard ... Jean

Complex Equations (1 to be doctored).sm (64,43 KiB) scaricato 1319 volta(e).
1 utenti hanno apprezzato questo post
Tuan Nguyen 21/04/2021 12:42:00
#30 Pubblicato: 21/04/2021 12:45:01
Tuan Nguyen

Tuan Nguyen

0 apprezzamenti in 16 post.

Gruppo: User

Wrote

.... download this same updated in split part.
At this point make the Units match.
I don't doctor units, they are against maths and my conviction.
Keep working hard ... Jean

Complex Equations (1 to be doctored).sm (64,43 KiB) scaricato 1319 volta(e).



Thanks, Jean for giving this a stab. Let me try to remove all the units in the equations and see what happens.
#31 Pubblicato: 21/04/2021 13:09:42
Tuan Nguyen

Tuan Nguyen

0 apprezzamenti in 16 post.

Gruppo: User

Wrote

.... download this same updated in split part.
At this point make the Units match.
I don't doctor units, they are against maths and my conviction.
Keep working hard ... Jean

Complex Equations (1 to be doctored).sm (64,43 KiB) scaricato 1319 volta(e).



Please use the attached file. No more units in the equations. Or use this block
Block to remove units in the equationsComplex Equations (unitless).sm (50,11 KiB) scaricato 1269 volta(e).
  • Nuovi post
  • Nessun nuovo post