any way to display the result in a rational/irrational number format instead of decimal format ?

any way to display the result in a rational/irrational number format instead of decimal format ? - Messages

#1 Posted: 8/17/2013 12:16:32 PM
jeblesh

jeblesh

0 likes in 2 posts.

Group: User

or if my English is not clear (i got bad English ...)
display nya 1.5 as nya 1 1/5 ...
#2 Posted: 8/17/2013 12:50:54 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

You might have a look at the context menu options (right mouse button) in math regions.
The options relevant for you are
- optimization: numeric/symbolic
- fractions: fractions/decimal
You also can insert any number or expression in the results unit placeholder. Be very careful, because symbolic optimization is rather unreliable.
This is numeric optimization with fractions decimal:
[MATH]1/3+1/2=0.8333[/MATH]
This is symbolic optimization or numeric optimization and fractions: fractions
[MATH]1/3+1/2=5/6[/MATH]
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 8/17/2013 1:01:30 PM
jeblesh

jeblesh

0 likes in 2 posts.

Group: User

Wrote

You might have a look at the context menu options (right mouse button) in math regions.
The options relevant for you are
- optimization: numeric/symbolic
- fractions: fractions/decimal
You also can insert any number or expression in the results unit placeholder. Be very careful, because symbolic optimization is rather unreliable.
This is numeric optimization with fractions decimal:
[MATH]1/3+1/2=0.8333[/MATH]
This is symbolic optimization or numeric optimization and fractions: fractions
[MATH]1/3+1/2=5/6[/MATH]



well simplifying the number wold hath been nice but at least it correct numbers now (:
TYVM (:
#4 Posted: 8/17/2013 1:21:55 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

If you really want you can get this:
[MATH]1.5=3@1/2[/MATH]
How was this done? Use 1/2 as unit. Clearly, this leads to misunderstandings and cannot be recommended. The solution for your problem would be to introduce an additive result split similar to the multiplicative split that is the base of result units handling. Of course, there would be some markup required in order to tell one from the other in printed output.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts