1 stranica (10 stavki)
Using solve or maple.solve for Array - Poruke
I want to using solve function for a simple arithmetic equation. But one of the value is an array so I must have array of answers. I am unable to achieve this using solve & maple.solve
As the last resort I had to solve the equation separately which is both boring & not dynamic. The equation has units...
Page1.sm (184,19 KiB) preuzeto 1458 put(ova).
As the last resort I had to solve the equation separately which is both boring & not dynamic. The equation has units...
Page1.sm (184,19 KiB) preuzeto 1458 put(ova).
Thanks for the solution. Can you please explain why we need to vectorize (above arrow) the last statement?
Secondly I cannot add units to x in the function developed st_mass? My version is 0.99 (6671)
Secondly I cannot add units to x in the function developed st_mass? My version is 0.99 (6671)
WroteThanks for the solution. Can you please explain why we need to vectorize (above arrow) the last statement?
If the function uses a scalar and you substitute a vector of values, then you need to either use a loop over the elements of the vector, or the vectorization operator.
WroteSecondly I cannot add units to x in the function developed st_mass? My version is 0.99 (6671)
Try to multiply x by 1 and replace 1 with units.
And I think that the maple() function is not needed here, an ordinary solve() should handle it.
Russia ☭ forever, Viacheslav N. Mezentsev
WrotePer my experience maple.solve handles units far better.
Keep in mind that the function maple() doesn't know anything about units at all. The function uses a special trick to ignore them in its work.
Try now
Page1 (uni).sm (175,19 KiB) preuzeto 1443 put(ova).
Page1 (uni).pdf (380,33 KiB) preuzeto 938 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
Wrote
Sir very weird thing is happening??
If I change the units of x from kW/kw (which is giving correct results) to kW/kW or to kw/kw answer's dimension is all weird
If I change the units of x from kW/kw (which is giving correct results) to kW/kW or to kw/kw answer's dimension is all weird
Ok I made a typo fault. Everything OK now THNX
WroteI want to using solve function for a simple arithmetic equation. But one of the value is an array so I must have array of answers. I am unable to achieve this using solve
Here is Engineer style ... no need for Maple, just native Smath
Attached SS 6179 ... some volunteer to make it unit kg/s
Ioncube Otherwise.sm (20,16 KiB) preuzeto 1245 put(ova).
Wrote....
Try to multiply x by 1 and replace 1 with units.
And I think that the maple() function is not needed here, an ordinary solve() should handle it.
Hi. I guess that the problem is that kw just like "kw" both in lowercase isn't an unit, but it is kW. To know the name of an unit you have the coup icon for insert one in the toolbar.
In the attached using kW instead kw, maple don't needs units manipulation, but SMath's roots needs.
Page1 (uni).pdf (413,26 KiB) preuzeto 912 put(ova).
Page1 (uni).sm (177,25 KiB) preuzeto 1474 put(ova).
Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
Вячеслав Мезенцев 18. 11. 2020. 02:16:00
... forget units, reconciliate as you wish in the solve bloc & Table

Ioncube Otherwise.sm (28,65 KiB) preuzeto 1206 put(ova).
Ioncube Otherwise.sm (28,65 KiB) preuzeto 1206 put(ova).
1 stranica (10 stavki)
- Novi postovi
- Nema novih postova
