1 Pages (6 items)
operations with base different to 10 - Messages
#1 Posted: 4/6/2021 7:43:38 AM
how can I do an arithmetic operation using a different base to 10?
I did not find anything related to this anywhere.
I did not find anything related to this anywhere.
#2 Posted: 4/6/2021 9:32:41 AM
Wrotehow can I do an arithmetic operation using a different base to 10 ?
Can you be more specific with an example ?
#3 Posted: 4/6/2021 10:01:46 AM
For example, for binaries:
2 in base 10 = 2
2 in base 2 = 10 ( base 2)
2 in base + 2 in base 2 = 100 (base 2)
4 in base 10 = 100 in base 2
Base is wrote like a number subscripted
2 in base 10 = 2
2 in base 2 = 10 ( base 2)
2 in base + 2 in base 2 = 100 (base 2)
4 in base 10 = 100 in base 2
Base is wrote like a number subscripted
#4 Posted: 4/6/2021 10:10:01 AM
WroteFor example, for binaries:
2 in base 10 = 2
2 in base 2 = 10 ( base 2)
2 in base + 2 in base 2 = 100 (base 2)
4 in base 10 = 100 in base 2
Base is wrote like a number subscripted
If I am not mistaken, there are no such base arithmetic functions under SMath.
You can write your own functions under SMath, but I guess it would take a lot of time.
Hmm, maybe this is a nice idea to write a plugin about.
I could do that as a side project in my spare times.
No promises here.
Regards.
#5 Posted: 4/6/2021 11:59:46 AM
Wrotehow can I do an arithmetic operation using a different base to 10 ?
I don't understand, simply.
I you have a parametric function from source f(a,b,c,x)
parameters [a,b,c] given from source as decimal,
why would you convert in another base than decimal ?
However, you can shrink/expand the variate 'x' as you wish.
#6 Posted: 4/6/2021 2:07:51 PM
Wrotehow can I do an arithmetic operation using a different base to 10?
I did not find anything related to this anywhere.
Hi. Try this one: https://en.smath.com/forum/yaf_postsm60016_Units-and-Conversions.aspx#post60016
Or this other: https://en.smath.com/forum/yaf_postst14912_String-utilities.aspx
Best regards.
Alvaro.
1 Pages (6 items)
-
New Posts
-
No New Posts