How to force SMath to show values in decimal format and not fraction

How to force SMath to show values in decimal format and not fraction - Decimal, fraction format - Messaggi

#1 Pubblicato: 10/10/2017 15:55:09
Mo

Mo

0 apprezzamenti in 34 post.

Gruppo: User

Hi,
I am trying to display output calculations visually on a diagram in SMath through text. whenever there is decimal/fraction it always displays it in fraction format and I want to display it in decimal.
how can I do this please knowing that I already tried forcing the "fraction" option in the Tools to "Decimal"?
smath.JPG

Thanks in advance!
#2 Pubblicato: 10/10/2017 16:39:10
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Maybe like this ?

Result.PNG
#3 Pubblicato: 10/10/2017 18:18:12
Mo

Mo

0 apprezzamenti in 34 post.

Gruppo: User

Thanks Jean, but I did not understand how you made it work.
Can you send a small example?
Also, I did not find any "optimiz" option in my version of SMath.
example.sm (1,99 KiB) scaricato 1341 volta(e).
thanks
#4 Pubblicato: 10/10/2017 19:14:12
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Hello Alberta ! I consulted for Syncrude [6 months 1983].
I can't reproduce your "Combo box" 6179.

example.sm (3,93 KiB) scaricato 1337 volta(e).
#5 Pubblicato: 10/10/2017 20:22:29
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

If you are using the conditionally formatted label or a plot, it is possible to use var2str() from CustomFunctions plugin.

Otherwise you can simply use a math region, right click on it and uncheck "Display input data", add a border (if you want), and that's all (in this case, use the options that Jean has mentioned in his first reply)

example.sm (8,79 KiB) scaricato 1306 volta(e).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 utenti hanno apprezzato questo post
Mo 11/10/2017 01:21:00
#6 Pubblicato: 10/10/2017 23:35:16
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Can you send a small example?



Once the document is ready for publishing => two options,
1. in customized text region [mostly for results]
2. in "Formatted Label" [very convenient to show all maths]

Image Formated LABEL [Oxyhemoglobin].sm (17,17 KiB) scaricato 1144 volta(e).

Image Formated LABEL.sm (24,5 KiB) scaricato 1264 volta(e).
1 utenti hanno apprezzato questo post
Mo 11/10/2017 01:21:00
#7 Pubblicato: 11/10/2017 00:04:36
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... Oxyhemoglobin ... you can reworks the maths by just clicking on
the region of interest. Try changing 'b' limit of the integrator,
all the slided regions disappear [similar to Mathcad "bring to front"],
as you quit the "Formated Label" region, everything comes back live.
Mathcad could not do that, the graph would have to be external.
The all stuff "Formated Label" is calculated first and the graph
behaves like if it would be below in normal work sheet.
Fantastic for day to day classroom in small chunks or for client.

Cheers, Jean
#8 Pubblicato: 11/10/2017 01:23:02
Mo

Mo

0 apprezzamenti in 34 post.

Gruppo: User

Thanks a lot Jean, Thanks a lot Davide.
Jean, I think the Oxyhemoglobin was a post for someone else because it is not related to the topic
#9 Pubblicato: 11/10/2017 10:06:21
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Jean, I think the Oxyhemoglobin was a post for someone else because it is not related to the topic



"Someone else" is myself. It shows how to publish a final project.
Oxyhemoglobin dates back to Mathcad Collaboratory. From recollection,
it was quite a brain storm because the published data were not as collected.
Rather, the data set was freaked by unknown. That does not help modeling !
On the other hand, the original 244 pairs does not help the fit,
16 pairs were largely enough.

Cheers, Jean

Genfit Oxyhemoglobin Reconciliation.sm (47,68 KiB) scaricato 1245 volta(e).

Image Formated LABEL [Oxyhemoglobin].sm (17,3 KiB) scaricato 1074 volta(e).

Genfit Oxyhemoglobin.sm (54,82 KiB) scaricato 1329 volta(e).

#10 Pubblicato: 11/10/2017 13:03:00
CBG

CBG

78 apprezzamenti in 312 post.

Gruppo: User

I think is better to use the result directly in the drawing by changing the units and hiding the name of the variable

Inser_Med_dib.png



example_IMD.sm (546,71 KiB) scaricato 1319 volta(e).
  • Nuovi post
  • Nessun nuovo post