Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

How to convert from binary number (vector form) to decimal (with Prime)?

$
0
0

Greetings.

I need convert binary numbers and show the process, for example:

The binary 1011 is the matrix vector [1 0 1 1], need a program that make 2^3, 0^2, 2^1 and 2^0 then show a matrix [8 0 2 1] and later the sum 11 (8+2+1).

Need show the matrix and sum, working according to the number of digits.

Also need convert (based on block of 3 and 4 digits of) binary number to octal and hexa numbers.


Viewing all articles
Browse latest Browse all 2936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>