1 страниц (9 вхождений)
Natural fractions - How can I enter a value to display the integer and fractional part - Сообщения
Natural fractions. How can I enter a value to display the integer and fractional part, like 2½. Maybe somewhere there is a full-fledged Help?
Greetings!
I understand your question, but such a feature isn't built into SMath. However, there are ways to mitigate this lack of support.
If you wish for special characters (e.g., 「½」) to be treated as a number, you can declare then as such:
There are a few of these fraction characters you can define as a variable:

If you wish to type a fraction in as you propose (2½ ), this isn't so easy. You can use a matrix and then add the values together (i.e., Σ[2 ½]). This reads kinda like a fraction, but is needlessly bulky:
If the goal is to have the result of 2.5 itself to report as 2½ instead of 5/2; there isn't much you can do. The one thing you can do is create a function that will convert your number and report that fraction as type "string"
Hope this helps!
Kenny Lemens, P.E. ᵂᴵ
I understand your question, but such a feature isn't built into SMath. However, there are ways to mitigate this lack of support.
If you wish for special characters (e.g., 「½」) to be treated as a number, you can declare then as such:
½:0.5
There are a few of these fraction characters you can define as a variable:

If you wish to type a fraction in as you propose (2½ ), this isn't so easy. You can use a matrix and then add the values together (i.e., Σ[2 ½]). This reads kinda like a fraction, but is needlessly bulky:
sum(mat(2,½,1,2))
If the goal is to have the result of 2.5 itself to report as 2½ instead of 5/2; there isn't much you can do. The one thing you can do is create a function that will convert your number and report that fraction as type "string"
Hope this helps!
Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
easy
2+1/2

2+1/2

WroteNatural fractions. How can I enter a value to display the integer and fractional part, like 2½. Maybe somewhere there is a full-fledged Help?
Maybe this can help:

dec2frac.sm (6 КиБ) скачан 175 раз(а).
1 пользователям понравился этот пост
Alvaro Diaz Falconi 24.10.2022 00:51:00
WroteNatural fractions.
How can I enter a value to display the integer and fractional part
... lat brick in the wall from not acknowledged.
Stuff Forum.sm (12 КиБ) скачан 168 раз(а).
"dec2frac(decimal)" Works for me! Thank you! I've been using a sheet from MathCad, which is not as clear:
Feet Inches and Fractions.sm (38 КиБ) скачан 172 раз(а).
Feet Inches and Fractions.sm (38 КиБ) скачан 172 раз(а).
1 пользователям понравился этот пост
Alvaro Diaz Falconi 25.10.2022 01:12:00
Wrote"dec2frac(decimal)" Works for me! Thank you! I've been using a sheet from MathCad, which is not as clear:
Feet Inches and Fractions.sm (38 КиБ) скачан 172 раз(а).
Even the Oscar's solution is very elegant, this is another approach, based on the Nasch work.
Feet Inches and Fractions.sm (40 КиБ) скачан 179 раз(а).
Feet Inches and Fractions.pdf (166 КиБ) скачан 199 раз(а).
As an application, using a vernier (the English version here, but without the students comments)
Best regards.
Alvaro.
1 страниц (9 вхождений)
-
Новые сообщения
-
Нет новых сообщений