Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Mido0  
#1 Posted : 10 October 2017 21:55:09(UTC)
Mido0


Rank: Advanced Member

Groups: Registered
Joined: 10/01/2017(UTC)
Posts: 31
Man
Canada
Location: Alberta

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!

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 10 October 2017 22:39:10(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Maybe like this ?

Result.PNG
Offline Mido0  
#3 Posted : 11 October 2017 00:18:12(UTC)
Mido0


Rank: Advanced Member

Groups: Registered
Joined: 10/01/2017(UTC)
Posts: 31
Man
Canada
Location: Alberta

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 (2kb) downloaded 58 time(s).
thanks
Offline Jean Giraud  
#4 Posted : 11 October 2017 01:14:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Hello Alberta ! I consulted for Syncrude [6 months 1983].
I can't reproduce your "Combo box" 6179.

example.sm (4kb) downloaded 63 time(s).
Offline Davide Carpi  
#5 Posted : 11 October 2017 02:22:29(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
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 (9kb) downloaded 56 time(s).
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 11/10/2017(UTC)
Offline Jean Giraud  
#6 Posted : 11 October 2017 05:35:16(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Mido0 Go to Quoted Post
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 (18kb) downloaded 48 time(s).

Image Formated LABEL.sm (25kb) downloaded 45 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 11/10/2017(UTC)
Offline Jean Giraud  
#7 Posted : 11 October 2017 06:04:36(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
... 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
Offline Mido0  
#8 Posted : 11 October 2017 07:23:02(UTC)
Mido0


Rank: Advanced Member

Groups: Registered
Joined: 10/01/2017(UTC)
Posts: 31
Man
Canada
Location: Alberta

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 Good
Offline Jean Giraud  
#9 Posted : 11 October 2017 16:06:21(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Mido0 Go to Quoted Post
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 (48kb) downloaded 14 time(s).

Image Formated LABEL [Oxyhemoglobin].sm (18kb) downloaded 12 time(s).

Genfit Oxyhemoglobin.sm (55kb) downloaded 15 time(s).

Offline CBG  
#10 Posted : 11 October 2017 19:03:00(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
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 (547kb) downloaded 30 time(s).
Users browsing this topic
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.