1 страниц (6 вхождений)
operations with base different to 10 - Сообщения
#1 Опубликовано: 06.04.2021 07:43:38
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 Опубликовано: 06.04.2021 09:32:41
Wrotehow can I do an arithmetic operation using a different base to 10 ?
Can you be more specific with an example ?
#3 Опубликовано: 06.04.2021 10:01:46
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 Опубликовано: 06.04.2021 10:10:01
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 Опубликовано: 06.04.2021 11:59:46
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 Опубликовано: 06.04.2021 14:07:51
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 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений