No real roots ? - Solve function does not work - Messages
Your solve bloc is incorrect anyway. Generally 4 arguments solve(,,,,).
WroteYour solve bloc is incorrect anyway. Generally 4 arguments solve(,,,,).
What's going on ... I posted this example.
Solve Example.sm (7 KiB) downloaded 40 time(s).
WrotePlease, attach the document to see something profitable for doctoring.
Your solve bloc is incorrect anyway. Generally 4 arguments solve(,,,,).
Please see the file, the last page
minimal_model.sm (93 KiB) downloaded 36 time(s).
WroteWrotePlease, attach the document to see something profitable for doctoring.
Your solve bloc is incorrect anyway. Generally 4 arguments solve(,,,,).
Please see the file, the last page
minimal_model.sm (93 KiB) downloaded 36 time(s).
Not everything is solved with solve. Try to use root.
This was same issue I had to deal some near time.
I had completely forgotten the root function back then.
Usually works with units if you do as in example.
Otherwise you will encounter units mismatch.
Regards
WrotePlease see the file, the last page
Solve will work with a units-less construction.
By same token you can solve Maple for either X or Y units-less.
2D Parametric Plot [Create Trifolium].sm (33 KiB) downloaded 38 time(s).
WrotePlease see the file, the last page
minimal_model.sm (93 KiB) downloaded 36 time(s).
My bad, you can use solve too in this example. Even with units as mentioned before.
Just check your roots range in Tools>Options>Calculation for other calculations.
Regards
WroteWrotePlease see the file, the last page
minimal_model.sm (93 KiB) downloaded 36 time(s).
My bad, you can use solve too in this example. Even with units as mentioned before.
Just check your roots range in Tools>Options>Calculation for other calculations.
Regards
My roots range is -20 to +20
I don't know how to add units to the first parameter of the T1
because ' does not work there.
WroteWroteWrotePlease see the file, the last page
minimal_model.sm (93 KiB) downloaded 36 time(s).
My bad, you can use solve too in this example. Even with units as mentioned before.
Just check your roots range in Tools>Options>Calculation for other calculations.
Regards
My roots range is -20 to +20
I don't know how to add units to the first parameter of the T1
because ' does not work there.
I copied "25 m" to the first parameter,
then I replaced the number "25" with parameter "y",
as a result there was parameter with units like "y m"
and after that the "solve" started to work.
If I write "y" then press ' - I cannot add units.
It can handle variables with units and has embedded assignment (the solution is assigned to the variable. The solver requires an initial guess, which also tells the solver what unit to use. Another advantage of the solver is the precision control. In your case, the default precision seems to be a bit sloppy.
minimal_model_Kr.sm (94 KiB) downloaded 29 time(s).
Wrote...
I don't know how to add units to the first parameter of the T1
because ' does not work there.
...
Hi. For add units to a variable you need multiply it by the unit, this is what you need to write with the keyboard:
y.s:roots(T.1(γ*'m,19*'m)≡-0.0017*'J,γ)*'m
Wrote...
...
I copied "25 m" to the first parameter,
then I replaced the number "25" with parameter "y",
as a result there was parameter with units like "y m"
and after that the "solve" started to work.
If I write "y" then press ' - I cannot add units.
You can add units to y.s writing y.s*'m. When you copy "25 m" the clipboard have just "25*'m".
For understand the behavior of solve with units, you can think in this way: solve don't handle units, but your T.1 do, so if solve try to evaluate T.1(γ,19*'m) returns an error because units don't match, the workaround is tell solve to call T.1(γ*'m,19*'m). This make solve to work, but the answer is unitless. Next, you can add the correct unit to the answer, which if there are nothing strange it must to be the same unit that you need to add to γ getting the correct expression for solve adding two 'm in the expression
y.s:roots(T.1(γ*'m,19*'m)≡-0.0017*'J,γ)*'m
This note is for answer your doubts about solve, not for recommend to use it. As overlod points, in your case could be better to use roots, which have the same issues than solve with units and the same workaround, or use FindRoots as mkraska shows using units in the guess values.
Best regards.
Alvaro.
-
New Posts
-
No New Posts