solve does not work with two equations

solve does not work with two equations - Messaggi

#1 Pubblicato: 27/10/2021 04:30:58
Thohasius

Thohasius

0 apprezzamenti in 3 post.

Gruppo: User

Hi,
something is going wrong, but what?

I tried to solve two equations (x+y = 15 and x-y = 5), but the solver means "Assign variable" ???

If I do the same with just one exuation, it works?

(I'm new with Smath and just want to evaluate If we should use SMath or Mathcad Prime instead of Matcad 15 in future)


kind regards
Thomas

Unbenannt.jpg
#2 Pubblicato: 27/10/2021 04:45:07
fedeghi

fedeghi

25 apprezzamenti in 112 post.

Gruppo: User

roots() is the appropriate command to solve this system

Immagine 2021-10-27 094426.png
#3 Pubblicato: 27/10/2021 04:53:06
Thohasius

Thohasius

0 apprezzamenti in 3 post.

Gruppo: User

Wrote

roots() is the appropriate command to solve this system

Immagine 2021-10-27 094426.png




Thanks very much!

But why?
#4 Pubblicato: 27/10/2021 05:08:48
fedeghi

fedeghi

25 apprezzamenti in 112 post.

Gruppo: User

Different commands with different purpose, I guess.
Solve will work in finding multiple roots for one function, roots will find the "roots" of a non-linear system.
Developers may explain in depth why different commands for differents purpose have been implemented.

By the way, since you are approaching now SMath you may find useful to read a couple of "handbooks" prepared by some PRO users .

Some are available through the extension manager (Tools->Snippet Manager).
Among the ones available, I remember I read the two that I am highlighting in the image.
Immagine 2021-10-27 100215.png
If you want to download this two (or even any other handbook), select "online gallery" instead of "local storage", and you will see the complete list.
#5 Pubblicato: 27/10/2021 05:11:46
Thohasius

Thohasius

0 apprezzamenti in 3 post.

Gruppo: User

Wrote

Different commands with different purpose, I guess.
Solve will work in finding multiple roots for one function, roots will find the "roots" of a non-linear system.
Developers may explain in depth why different commands for differents purpose have been implemented.

By the way, since you are approaching now SMath you may find useful to read a couple of "handbooks" prepared by some PRO users .

Some are available through the extension manager (Tools->Snippet Manager).
Among the ones available, I remember I read the two that I am highlighting in the image.
Immagine 2021-10-27 100215.png
If you want to download this two (or even any other handbook), select "online gallery" instead of "local storage", and you will see the complete list.




Thanks again

Okay, I was looking for more than a hour why it does not work and i found lots of examples with "Solve" (not the same as "solve"?)...

I will have a look on it!
#6 Pubblicato: 27/10/2021 05:22:59
fedeghi

fedeghi

25 apprezzamenti in 112 post.

Gruppo: User

Solve() is the solver that uses Maxima plugin
solve() is the built-in solver.

Solve() (big S :^P) will only become available in your system in case you decide to install Maxima plugin.
I am not using Maxima plugin and so I cannot give you further details about differences between Solve() and solve()

Bye

ps: be sure to add also interactive guide by mkraska in you SMath (again, you will find it in the relevant extension manager section)
Immagine 2021-10-27 101948.png
It is super-useful to find quick interactive (and wisely "read only".. ) references for a lot of commands.
#7 Pubblicato: 27/10/2021 06:16:51
Stefano

Stefano

0 apprezzamenti in 22 post.

Gruppo: User

I am big fan of Solve() by the Maxima plugin and recommend it. With Solve() you can symbolically solve system of non linear equation without the need of defining before hands all the parameters: for example if you want to solve a parametric function like "x+a=0", Solve() will return a solution "x=-a" even if "a" is not defined, wherever solve() will complain about "a" not being defined.

My understanding is that native SMath Studio is optimized to solve stuff numerically, like a spreadsheet. If you want to be more abstract, then you need to use appropriate plugins. For example you can solve only defined integrals with native SS, where with Maxima Plugin you extend SS to handle also indefinite integral

solve_vs_maxima.sm (12,75 KiB) scaricato 1266 volta(e).
#8 Pubblicato: 27/10/2021 11:47:18
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

My understanding is that native SMath Studio is optimized to solve stuff numerically, like a spreadsheet. If you want to be more abstract, then you need to use appropriate plugins. For example you can solve only defined integrals with native SS, where with Maxima Plugin you extend SS to handle also indefinite integral


Visit Samples Symbolic COMPENDIUM...Download them all.

#9 Pubblicato: 27/10/2021 18:53:48
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

While Maxima is superior to maple plugin, it requires maxima download and installation separately.
We Linux users can use native maxima in terminal but we can't use Maxima plugin with SMath.
This conclude with our only option, maple plugin. And it can answer all questions in your file.

Regards

2021-10-27_16-21.png
#10 Pubblicato: 29/10/2021 11:22:09
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

(I'm new with Smath and just want to evaluate If we should use SMath or Mathcad Prime instead of Matcad 15 in future)
kind regards
Thomas


Smath is not a clone of Mathcad 11.
There are no known unsolved demand in Smath.
#11 Pubblicato: 30/10/2021 01:54:50
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

I'm new with Smath and just want to evaluate If we should use SMath or Mathcad Prime instead of Matcad 15 in future?


You should use SMath right now, not specifically in future.

  • Nuovi post
  • Nessun nuovo post