How to solve these types of equations

How to solve these types of equations - Сообщения

#21 Опубликовано: 19.04.2021 16:43:29
Martin Kraska

Martin Kraska

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

Группа: Moderator

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

nonlinear_kr.png
nonlinear_kr.sm (8 КиБ) скачан 33 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Tuan Nguyen 20.04.2021 02:19:00
#22 Опубликовано: 19.04.2021 17:02:46
overlord

overlord

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

Группа: 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 пользователям понравился этот пост
Tuan Nguyen 20.04.2021 02:19:00
#23 Опубликовано: 19.04.2021 17:36:25
overlord

overlord

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

Группа: 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 пользователям понравился этот пост
Martin Kraska 20.04.2021 17:46:00
#24 Опубликовано: 19.04.2021 19:59:16
Jean Giraud

Jean Giraud

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

Группа: 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 пользователям понравился этот пост
Tuan Nguyen 20.04.2021 02:19:00
#25 Опубликовано: 20.04.2021 16:06:05
Tuan Nguyen

Tuan Nguyen

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

Группа: 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 КиБ) скачан 45 раз(а).



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 раз(а).
#26 Опубликовано: 20.04.2021 17:46:00
Martin Kraska

Martin Kraska

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

Группа: 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 КиБ) скачан 31 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#27 Опубликовано: 20.04.2021 19:35:57
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 21.04.2021 08:41:04
Jean Giraud

Jean Giraud

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

Группа: 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 КиБ) скачан 29 раз(а).
1 пользователям понравился этот пост
Tuan Nguyen 21.04.2021 12:42:00
#29 Опубликовано: 21.04.2021 11:36:50
Jean Giraud

Jean Giraud

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

Группа: 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 КиБ) скачан 40 раз(а).
1 пользователям понравился этот пост
Tuan Nguyen 21.04.2021 12:42:00
#30 Опубликовано: 21.04.2021 12:45:01
Tuan Nguyen

Tuan Nguyen

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

Группа: 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 КиБ) скачан 40 раз(а).



Thanks, Jean for giving this a stab. Let me try to remove all the units in the equations and see what happens.
#31 Опубликовано: 21.04.2021 13:09:42
Tuan Nguyen

Tuan Nguyen

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

Группа: 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 КиБ) скачан 40 раз(а).



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 КиБ) скачан 38 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений