SMath Studio Forum
»
SMath Studio
»
Samples
»
operations with base different to 10
Rank: Member Groups: Registered
Joined: 04/04/2021(UTC) Posts: 10 Was thanked: 1 time(s) in 1 post(s)
|
how can I do an arithmetic operation using a different base to 10?
I did not find anything related to this anywhere.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: jtm2020hyo how can I do an arithmetic operation using a different base to 10 ? Can you be more specific with an example ?
|
|
|
|
Rank: Member Groups: Registered
Joined: 04/04/2021(UTC) Posts: 10 Was thanked: 1 time(s) in 1 post(s)
|
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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 Was thanked: 510 time(s) in 340 post(s)
|
Originally Posted by: jtm2020hyo 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 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. Edited by user 06 April 2021 16:11:56(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: jtm2020hyo how 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,370 Was thanked: 829 time(s) in 525 post(s)
|
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Samples
»
operations with base different to 10
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.