Solve equation - "no real roots" result

Solve equation - "no real roots" result - Messages

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

joao sousa

0 likes in 4 posts.

Group: 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 Posted: 2/27/2018 10:44:46 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 96 time(s).
Solve General.sm (138 KiB) downloaded 141 time(s).
Solve TREASURY_0 [General].sm (119 KiB) downloaded 86 time(s).

#3 Posted: 2/27/2018 1:47:20 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 Posted: 2/27/2018 2:03:47 PM
joao sousa

joao sousa

0 likes in 4 posts.

Group: 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 Posted: 2/27/2018 2:40:57 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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

Quote

  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 Posted: 2/27/2018 3:37:49 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 2/27/2018 5:10:19 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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

joao sousa

0 likes in 4 posts.

Group: 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 KiB) downloaded 73 time(s).

SMath_equation solver test.sm (8 KiB) downloaded 81 time(s).

SMath_equation solver test.sm (8 KiB) downloaded 85 time(s).

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 Posted: 3/2/2018 10:31:55 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

solvers.png
solvers.sm (17 KiB) downloaded 90 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
6 users liked this post
Serg 3/2/2018 2:59:00 PM, frapuano 3/2/2018 4:23:00 PM, sergio 3/2/2018 5:20:00 PM, NDTM Amarasekera 3/2/2018 10:20:00 PM, Fridel Selitsky 3/2/2018 11:11:00 PM, Radovan Omorjan 3/3/2018 5:28:00 AM
#11 Posted: 3/3/2018 10:59:27 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 105 time(s).

#12 Posted: 3/7/2018 7:18:35 AM
joao sousa

joao sousa

0 likes in 4 posts.

Group: 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 Posted: 3/7/2018 1:08:03 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#14 Posted: 3/8/2018 1:50:22 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 12/28/2019 10:19:53 PM
jdoe1

jdoe1

0 likes in 4 posts.

Group: User

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



#16 Posted: 12/28/2019 11:32:16 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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


Always plot first ...

Solve -Plot.PNG
#17 Posted: 12/29/2019 9:09:09 PM
jdoe1

jdoe1

0 likes in 4 posts.

Group: 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 Posted: 12/29/2019 11:01:26 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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
  • New Posts New Posts
  • No New Posts No New Posts