1 страниц (14 вхождений)
Changing fractions to decimal numbers in a explicit eqation - Сообщения
#1 Опубликовано: 03.03.2020 18:20:24
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.

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.
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.
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.
#2 Опубликовано: 03.03.2020 19:09:41
Wrote49033/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.
#3 Опубликовано: 04.03.2020 08:51:29
I'm sorry, I don't quite understand. Few more what? More decimal places?
#4 Опубликовано: 04.03.2020 09:04:39
WroteI'm sorry, I don't quite understand. Few more what? More decimal places?
Few more from the document to see the project.
#5 Опубликовано: 04.03.2020 12:57:03
#6 Опубликовано: 04.03.2020 14:08:06
I think that changing the optimization to numerical is enough.
zatizeni_R1.sm (447 КиБ) скачан 33 раз(а).
Best Regards
Carlos
zatizeni_R1.sm (447 КиБ) скачан 33 раз(а).
Best Regards
Carlos
#7 Опубликовано: 04.03.2020 14:36:45
#8 Опубликовано: 04.03.2020 14:50:33
#9 Опубликовано: 04.03.2020 16:49:04
#10 Опубликовано: 04.03.2020 16:56:01
#11 Опубликовано: 04.03.2020 16:57:45
well, apparently the way of carlos is much more elegant.
#12 Опубликовано: 04.03.2020 17:12:57
#13 Опубликовано: 04.03.2020 17:46:00
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.
Didn't know there even was function eval.
Really thanks.
And thanks to everyone else for helping. Incredible comunity here.
#14 Опубликовано: 04.03.2020 18:05:40
Wroteneither 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 (458 КиБ) скачан 36 раз(а).
1 страниц (14 вхождений)
-
Новые сообщения
-
Нет новых сообщений