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 Pahec97  
#1 Posted : 04 March 2020 00:20:24(UTC)
Pahec97

Rank: Newbie

Groups: Registered
Joined: 04/03/2020(UTC)
Posts: 5
Czech Republic
Location: Rosice

Hello, I'm trying to make a project in Smath, one of the requirements is that there must be shown what numbers am I substituting in my equtions.
I know you can change the optimalization to none to show the numbers, however this shows them as fractions and the fraction settings doesn't seem to do anything with it,
the result can be seen in image lower. What I want is to show the 49033/5000 as 9,81, which is how I defined it to begin with.

p1.png

I would really apreciate if someone could tell me how to show those numbers in decimal form or how to do the whole thing in other way that would result in what I want.
Thank you very much in advance.

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

Offline Jean Giraud  
#2 Posted : 04 March 2020 01:09:41(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Pahec97 Go to Quoted Post
49033/5000

As you are using units, 49033/500=9.806600000000000
represents the true value of that constant in floating arithmetic.
Few more would help doctor.
Offline Pahec97  
#3 Posted : 04 March 2020 14:51:29(UTC)
Pahec97

Rank: Newbie

Groups: Registered
Joined: 04/03/2020(UTC)
Posts: 5
Czech Republic
Location: Rosice

I'm sorry, I don't quite understand. Few more what? More decimal places?
Offline Jean Giraud  
#4 Posted : 04 March 2020 15:04:39(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Pahec97 Go to Quoted Post
I'm sorry, I don't quite understand. Few more what? More decimal places?

Few more from the document to see the project.
Offline Pahec97  
#5 Posted : 04 March 2020 18:57:03(UTC)
Pahec97

Rank: Newbie

Groups: Registered
Joined: 04/03/2020(UTC)
Posts: 5
Czech Republic
Location: Rosice

Oh sorry. Here is the entire file, the things are on page 2.
zatizeni.sm (450kb) downloaded 21 time(s).
Offline CBG  
#6 Posted : 04 March 2020 20:08:06(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 that changing the optimization to numerical is enough.


zatizeni_R1.sm (448kb) downloaded 15 time(s).


Best Regards

Carlos
Offline Jean Giraud  
#7 Posted : 04 March 2020 20:36:45(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
... maybe in red [255,225,225] ... page 2.

zatizeni.sm (450kb) downloaded 10 time(s).

Offline Pahec97  
#8 Posted : 04 March 2020 20:50:33(UTC)
Pahec97

Rank: Newbie

Groups: Registered
Joined: 04/03/2020(UTC)
Posts: 5
Czech Republic
Location: Rosice

While I'm grateful for your help, neither of your files does the thing for me. Even after reinstalling Smath,
it doesn't work.
Attached screenshot of the file from mister Giraud, file from Carlos changes nothing as well.
p2.png
Offline CBG  
#9 Posted : 04 March 2020 22:49:04(UTC)
CBG


Rank: Advanced Member

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

Was thanked: 77 time(s) in 58 post(s)
Do you want something like this?


Eval_Fracc.png



Best Regards

Carlos
Offline overlord  
#10 Posted : 04 March 2020 22:56:01(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
you can use the pre-defined constant ge.
if you have to put user defined g constant, than I don't have any idea.

ge.png
Offline overlord  
#11 Posted : 04 March 2020 22:57:45(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
well, apparently the way of carlos is much more elegant.
Offline CBG  
#12 Posted : 04 March 2020 23:12:57(UTC)
CBG


Rank: Advanced Member

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

Was thanked: 77 time(s) in 58 post(s)
The file

Eval_Fracc_2.png,


zatizeni_R2.sm (458kb) downloaded 20 time(s).


Best Regards

Carlos
Offline Pahec97  
#13 Posted : 04 March 2020 23:46:00(UTC)
Pahec97

Rank: Newbie

Groups: Registered
Joined: 04/03/2020(UTC)
Posts: 5
Czech Republic
Location: Rosice

Thank you very much Carlos, thats exactly what I needed.
Didn't know there even was function eval.
Really thanks.

And thanks to everyone else for helping. Incredible comunity here.
Offline Jean Giraud  
#14 Posted : 05 March 2020 00:05:40(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Pahec97 Go to Quoted Post
neither of your files does the thing for me.

That's what we are wondering: what should it do for you ?
The green explosion ?
By same token, you can make the while loops more visible
... in green below.

zatizeni [pink_green].sm (459kb) downloaded 15 time(s).
Users browsing this topic
Guest
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.