SMath Studio Forum
»
SMath Studio
»
Questions
»
Why does symbolic output always come out like this?
Rank: Advanced Member Groups: Registered
Joined: 27/05/2016(UTC) Posts: 77 Location: Little Rock, Arkansas Was thanked: 9 time(s) in 7 post(s)
|
Please see the screenshot below with a comparison between SMath and Mathcad. Mathcad produces the expected output of multiplying a matrix by a vector of variables - a matrix with those variables in the appropriate terms of the matrix. SMath, for all the years I've used it, has never done this well. Setting optimization to symbolic comes close in that the result has the variable placed in each term of the matrix, but symbolic has always been completely useless for me because it always makes everything into these huge weird fractions. Can nothing be done about this?? Surely I am not the only one who finds this frustrating and difficult to work around? Does anyone have any suggestions? Note: these are not the same calcs, so ignore that the values are numerically different. The Mathcad calc is from a couple of years ago when I could afford Mathcad at their student discount rate, while the SMath calc is from an assignment I'm working on in my current class. My point is about SMath wanting to convert simple decimal numbers to ratios of 40-digit long numbers instead of just leaving them as decimals that 1) obscure what's going on because of there being fractions where there weren't any before, and 2) making the formulas and results unable to fit on a page anymore. If I pick numeric optimization, then it won't display any result because the variables aren't defined yet, and the variables are what I'm solving for. If I pick none, then it condenses it somewhat, but the variables aren't distributed into the matrix and the matrix is now in the form of fractions like 1.57890573210119*10^25 / 8.27641801957219*10^15. Either way, not usable. Any help is appreciated. Thanks! |
Jason McCool Robbins Engineering Little Rock, AR, USA |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,013 Was thanked: 1145 time(s) in 736 post(s)
|
If using the Maxima plugin is an option for you, then you can use the float() function along with Optimization> None in SMath. Note that ratexpand() is not needed here but may be useful for more complex expressions. Worksheet3.sm (5kb) downloaded 10 time(s).Edited by user 04 March 2024 22:52:59(UTC)
| Reason: Not specified |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 27/05/2016(UTC) Posts: 77 Location: Little Rock, Arkansas Was thanked: 9 time(s) in 7 post(s)
|
I've installed Maxima and th eMaxima plugin, and I can get the MaximaControl command to work, but "float" isn't a recognized command. Is that function from another plugin? Edit: Never mind.I think I have it now. Very new to Maxima, but that does what I need. Thanks! Edited by user 05 March 2024 15:57:12(UTC)
| Reason: Not specified |
Jason McCool Robbins Engineering Little Rock, AR, USA |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Why does symbolic output always come out like this?
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.