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 ? - Сообщения

#1 Опубликовано: 17.08.2013 12:16:32
jeblesh

jeblesh

0 сообщений из 2 понравились пользователям.

Группа: User

or if my English is not clear (i got bad English ...)
display nya 1.5 as nya 1 1/5 ...
#2 Опубликовано: 17.08.2013 12:50:54
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 17.08.2013 13:01:30
jeblesh

jeblesh

0 сообщений из 2 понравились пользователям.

Группа: 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 Опубликовано: 17.08.2013 13:21:55
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений