SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Solve equation - "no real roots" result
Rank: Newbie
Groups: Registered
Joined: 27/02/2018(UTC) Posts: 4 Location: Porto
|
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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: moaojanuel 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 (37kb) downloaded 76 time(s). Solve General.sm (139kb) downloaded 116 time(s). Solve TREASURY_0 [General].sm (120kb) downloaded 61 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/02/2018(UTC) Posts: 4 Location: Porto
|
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
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Originally Posted by: moaojanuel Is there any chance someone could have a look at the file I have attached originally?
There aren't attachments in your posts Edited by user 27 February 2018 20:44:43(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: moaojanuel Is there any chance someone could have a look at the file I have attached originally? There is no *.sm document attached !
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/02/2018(UTC) Posts: 4 Location: Porto
|
(Please ignore my post below - I can see the files have been uploaded after all 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 (2kb) downloaded 46 time(s). SMath_equation solver test.sm (9kb) downloaded 58 time(s). SMath_equation solver test.sm (9kb) downloaded 60 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 Edited by user 02 March 2018 15:48:49(UTC)
| Reason: attachment was uploaded after all
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Will be back later during the day
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
|
|
6 users thanked mkraska for this useful post.
|
on 02/03/2018(UTC), on 02/03/2018(UTC), on 02/03/2018(UTC), on 03/03/2018(UTC), on 03/03/2018(UTC), on 03/03/2018(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: moaojanuel 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]. SMath_equation solver test (1).sm (12kb) downloaded 82 time(s).
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/02/2018(UTC) Posts: 4 Location: Porto
|
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 Edited by moderator 29 March 2018 12:49:15(UTC)
| Reason: marked as SOLVED
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
Originally Posted by: moaojanuel 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. |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: moaojanuel 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 ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 12/12/2019(UTC) Posts: 4
|
I'm having a similar problem, it works on wolfram and symbolab, but not in Smath.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: jdoe1 it works on wolfram and symbolab, but not in Smath. Always plot first ...
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 12/12/2019(UTC) Posts: 4
|
Originally Posted by: Jean Giraud Originally Posted by: jdoe1 it works on wolfram and symbolab, but not in Smath. Always plot first ... 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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: jdoe1 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.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Solve equation - "no real roots" result
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.