Solve equation - "no real roots" result

Solve equation - "no real roots" result - Mensajes

#1 Publicado: 27/2/2018 7:10:25
joao sousa

joao sousa

0 me gusta en 4 mensajes.

Grupo: User

Howdy,

I am relatively new to SMath (have used Mathcad in the past). I am trying to use SMath to run some engineering calculations. Particularly, I am interested in solving equations - I have used 'solve' function, but always get a "no real roots" message (see file attached).

Can someone help out?

Many thanks in advance!

J
#2 Publicado: 27/2/2018 10:44:46
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I am relatively new to SMath (have used Mathcad in the past). I am trying to use SMath to run some engineering calculations. Particularly, I am interested in solving equations - I have used 'solve' function, but always get a "no real roots" message (see file attached).

Can someone help out?

Many thanks in advance!


Solving means a lot in Engineering works.
No real roots, indicates the solver is ill posed [generally]
Please, don't hesitate to post your problem, there is great expertise in Smath Community.

Maths bitcoin.sm (36,43 KiB) descargado 1545 vez(es).
Solve General.sm (138,6 KiB) descargado 1596 vez(es).
Solve TREASURY_0 [General].sm (119,73 KiB) descargado 1373 vez(es).

#3 Publicado: 27/2/2018 13:47:20
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Probably are you using the solve(2) function instead of the the solve(4) one (4 arguments, last 2 are the limits of the range where to search the roots)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Publicado: 27/2/2018 14:03:47
joao sousa

joao sousa

0 me gusta en 4 mensajes.

Grupo: User

Many thanks ALL for your valuable responses. While I understand what you are saying/showing on your templates, I still haven't managed to figure out what is wrong with the way the solve function is being employed. I have changed the roots range (-100, +100), tried the solve with 4arguments, and still nothing. Is there any chance someone could have a look at the file I have attached originally?

Many thanks,
J
#5 Publicado: 27/2/2018 14:40:57
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Wrote

Is there any chance someone could have a look at the file I have attached originally?



There aren't attachments in your posts

Citar

  1. 2018-02-24 19_32_16-Edit post.png

  2. 2018-02-24 19_32_34-Edit post.png

  3. 2018-02-24 19_32_44-Nessun file selezionato..png

  4. 2018-02-24 19_33_24-Edit post.png

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Publicado: 27/2/2018 15:37:49
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

Is there any chance someone could have a look at the file I have attached originally?


There is no *.sm document attached !

#7 Publicado: 27/2/2018 17:10:19
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

OVNIsolve.PNG
#8 Publicado: 2/3/2018 9:46:16
joao sousa

joao sousa

0 me gusta en 4 mensajes.

Grupo: User

(Please ignore my post below - I can see the files have been uploaded after all b)

Iff someone could have a look at the .sm file I have attached, I would be very grateful.

Many thanks,
Joao

SMath_equation solver test.zip (1,59 KiB) descargado 576 vez(es).

SMath_equation solver test.sm (8,23 KiB) descargado 1548 vez(es).

SMath_equation solver test.sm (8,23 KiB) descargado 1503 vez(es).

Hi ALL,

Many thanks for you interest and responses. Apologies for not having responded but I have been away from the office. I am trying to attach an .sm file, but for some reason this is not working... Any thoughts?

Thanks,
Joao
#9 Publicado: 2/3/2018 10:31:55
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Will be back later during the day
#10 Publicado: 2/3/2018 14:16:58
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

solvers.png
solvers.sm (17,78 KiB) descargado 1534 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 6 usuarios les gustó este mensaje
Serg 2/3/2018 14:59:00, frapuano 2/3/2018 16:23:00, sergio 2/3/2018 17:20:00, NDTM Amarasekera 2/3/2018 22:20:00, Fridel Selitsky 2/3/2018 23:11:00, Radovan Omorjan 3/3/2018 5:28:00
#11 Publicado: 3/3/2018 10:59:27
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

Iff someone could have a look at the .sm file I have attached, I would be very grateful.



"NO real roots" from the solve bloc is an absolute pest [not to say stupid].

SolveWisely.PNG

SMath_equation solver test (1).sm (11,49 KiB) descargado 1481 vez(es).

#12 Publicado: 7/3/2018 7:18:35
joao sousa

joao sousa

0 me gusta en 4 mensajes.

Grupo: User

Dear ALL,

Many thanks for your incredible support! I am in awe for the depth of knowledge herein displayed.

With regards to your responses, I appreciate the need to make an appropriate substitution to overcome the fact that solve can't handle units in the variable; However, I can´t seem to assign the unit to the variable, within the equation (apologies for being thick). I've tried typing x'm, tried using ctrl+w to assign meters unit to x, but still haven't managed to make it work. A bit frustrating... If anyone could be so kind to shed some light here, that would be greatly appreciated.

Many thanks,
J
#13 Publicado: 7/3/2018 13:08:03
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Wrote

Dear ALL,

Many thanks for your incredible support! I am in awe for the depth of knowledge herein displayed.

With regards to your responses, I appreciate the need to make an appropriate substitution to overcome the fact that solve can't handle units in the variable; However, I can´t seem to assign the unit to the variable, within the equation (apologies for being thick). I've tried typing x'm, tried using ctrl+w to assign meters unit to x, but still haven't managed to make it work. A bit frustrating... If anyone could be so kind to shed some light here, that would be greatly appreciated.

Many thanks,
J





Type x*'m or x* and then insert the unit from the dialog into the empty placeholder in the right of the multiplication dot.

Multiplication operators in front of units aren't shown.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#14 Publicado: 8/3/2018 1:50:22
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

Many thanks for your incredible support! I am in awe for the depth of knowledge herein displayed.

With regards to your responses, I appreciate the need to make an appropriate substitution to overcome the fact that solve can't handle units in the variable; However, I can´t seem to assign the unit to the variable, within the equation (apologies for being thick). I've tried typing x'm, tried using ctrl w to assign meters unit to x, but still haven't managed to make it work. A bit frustrating... If anyone could be so kind to shed some light here, that would be greatly appreciated.



You are debating with the Unit SI as implemented in Smath [Mathcad ...]
You may pacify your soul on several counts:
1. maths are unit less
2. ISO standards have their own units [most generally from SI derived units].
... therefore converting automatically bar in Pa ... etc.
3. Engineering formulas are constructed around the appropriate Units
... therefore no need to freak them more.
4. Consider this example: you have a formula, from which you can directly/indirectly
compute the arc length ... in what SI units Watson ???
... simple Sherlook ... in "UnitGraphic" that you can meter in year-light/micrometer ...
5. How did we do in the age of the slide rule, in the age of paper/pencil/log tables ?
6. Was Sputnik launched from SI unit software ?
#15 Publicado: 28/12/2019 22:19:53
jdoe1

jdoe1

0 me gusta en 4 mensajes.

Grupo: User

I'm having a similar problem, it works on wolfram and symbolab, but not in Smath.



#16 Publicado: 28/12/2019 23:32:16
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

it works on wolfram and symbolab, but not in Smath.


Always plot first ...

Solve -Plot.PNG
#17 Publicado: 29/12/2019 21:09:09
jdoe1

jdoe1

0 me gusta en 4 mensajes.

Grupo: User

Wrote

Wrote

it works on wolfram and symbolab, but not in Smath.


Always plot first ...

Solve -Plot.PNG



I somehow missed the option to use the 2nd solve function with root limit, but I didn't need a plot for this, so I used it in one line and everything worked out fine.

I can't click the thank button, so thanks.
#18 Publicado: 29/12/2019 23:01:26
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I somehow missed the option to use the 2nd solve function with root limit, but I didn't need a plot for this, so I used it in one line and everything worked out fine.


If you don't plot, you will soon hit the wall.
That will help set the limits.
When applicable, "implicit roots" is often + accurate.

roots.PNG
  • Nuevos mensajes
  • Sin mensajes nuevos