The value went beyond the maximum allowed positive number

The value went beyond the maximum allowed positive number - the value went beyond the maximum allowed positive number, error in the solve function - 消息

#1 已发布: 2020/2/12 10:38:12
Joki720

Joki720

0个赞,共12个帖子。

组: User

Who has faced such a problem, how can it be solved?
Project from below
Bezymjannyjj.jpg
Poverochnyjj raschjot ehzhektora.sm (84.1 KiB)已下载 1191 次。
#2 已发布: 2020/2/12 12:07:47
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Who has faced such a problem, how can it be solved?


"result above max ..." has no pertinent meaning in your project.
If you attempt "roots" on the numerator only ... "Units don't match"
No need to go further ... zap the units in the project.

#3 已发布: 2020/2/12 12:38:24
Joki720

Joki720

0个赞,共12个帖子。

组: User

Wrote

Wrote

Who has faced such a problem, how can it be solved?


"result above max ..." has no pertinent meaning in your project.
If you attempt "roots" on the numerator only ... "Units don't match"
No need to go further ... zap the units in the project.



I made a mistake, there should be a solve function, in this place the same error
#4 已发布: 2020/2/12 14:57:49
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I made a mistake, there should be a solve function, in this place the same error


Same answer: Units don't match.
How can you solve what you can't plot or evaluate ?

UnitsDontMatch.PNG

#5 已发布: 2020/2/13 07:44:15
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

You can use the function FindRoot() from the Nonlinear Solvers plugin. The function automatically assigns the solution to the variables.

Единицы измерения здесь не при чем.

2020-02-13 11_38_00-SMath Studio 0.99.7251 - [Poverochnyjj%20raschjot%20ehzhektora.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Joki720 2020/2/14 13:06:00
#6 已发布: 2020/2/14 13:09:51
Joki720

Joki720

0个赞,共12个帖子。

组: User

Wrote

You can use the function FindRoot() from the Nonlinear Solvers plugin. The function automatically assigns the solution to the variables.

Единицы измерения здесь не при чем.

2020-02-13 11_38_00-SMath Studio 0.99.7251 - [Poverochnyjj%20raschjot%20ehzhektora.sm_].png



why do you use 0.2 and 0.5?
#7 已发布: 2020/2/14 13:57:29
sergio

sergio

127个赞,共342个帖子。

组: User

Joki,
Martin could have drawn the two curves and graphically estimated the two solutions

sergio
#8 已发布: 2020/2/14 14:52:49
Joki720

Joki720

0个赞,共12个帖子。

组: User

Wrote

Martin could have drawn the two curves and graphically estimated the two solutions

sergio



The solution must be automatic, plotting make and evaluating it is not appropriate
#9 已发布: 2020/2/14 19:34:05
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

The solution must be automatic, plotting make and evaluating it is not appropriate


OK ... don't plot => find min/max.
Don't you need a road to drive the car from point A to point B ?

min_max.PNG

#10 已发布: 2020/2/14 22:56:17
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Who has faced such a problem, how can it be solved?


Common from ill posed construction.
Consider yellow up until you can plot that system(x,y):= ....
from there it should be solvable.

Poverochnyjj raschjot ehzhektora [zap Units, define the Undefined ...].sm (94.03 KiB)已下载 1019 次。
#11 已发布: 2020/2/15 06:37:16
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Wrote

Wrote

Martin could have drawn the two curves and graphically estimated the two solutions

sergio



The solution must be automatic, plotting make and evaluating it is not appropriate



Go on dreaming. If you are in non-linear systems and you can't find a symbolic solution (Maxima's Solve() got stuck when I tried) then you need numerical procedures for solution. These always need an initial guess (Newton-Raphson) or a search region (bisection). The various procedures just differ in how efficient or how robust they are. Some of them may have quite impressive radii of convergence for particular systems but none has infinite radius for all systems.

Furthermore, there remains the problem of uniqueness of a solution. The only solvers in SMath capable of providing multiple solutions are the
  • solve() finds all solutions of a single equation within a given range
  • Solve() from the Maxima plugin, which finds symbolic solutions.


Blatt21.png
Blatt21.sm (5.23 KiB)已下载 1209 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#12 已发布: 2020/2/15 12:10:50
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Furthermore, there remains the problem of uniqueness of a solution. The only solvers in SMath capable of providing multiple solutions are the

    solve() finds all solutions of a single equation within a given range
    Solve() from the Maxima plugin, which finds symbolic solutions.



Quite right and not enough wrt complex roots.

Cubic solver Exercise.sm (38.97 KiB)已下载 1184 次。
#13 已发布: 2020/2/15 17:54:43
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Always avoid ill posed polynomials.

ill posed.PNG
#14 已发布: 2020/2/16 15:10:14
Jouko Tolonen

Jouko Tolonen

0个赞,共4个帖子。

组: User

To OP's original question. I did get the same/similar error message on linear interpolation. One of the 5 required values had wrong value. After correcting no issues.
#15 已发布: 2020/2/16 20:47:13
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

To OP's original question. I did get the same/similar error message on linear interpolation. One of the 5 required values had wrong value. After correcting no issues.

.
What linear interpolation is doing here ?
If that document makes sense, return with comments.

Poverochnyjj raschjot ehzhektora [solve].sm (95.19 KiB)已下载 1043 次。
#16 已发布: 2020/2/16 23:09:30
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

What linear interpolation is doing here ?
If that document makes sense, return with comments.


I imagine you mean the very last part of the document.
The system looks ill posed, visit Solve Lecture last 3 days.

Poverochnyjj raschjot ehzhektora [solve, spline].sm (104 KiB)已下载 1070 次。
#17 已发布: 2020/2/17 09:35:01
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... maybe we can leave it as such ... cleanup ?

Poverochnyjj raschjot ehzhektora [solve, spline].sm (110.44 KiB)已下载 1025 次。
Inst_Isentropic Discharge.sm (173.76 KiB)已下载 1177 次。
  • 有新帖
  • 无新帖