Scientific Calculator
ryan
Scripts
- dec2bin
dec2bin(h) returns the binary representation of h as a string.
- log2
Base-2 log of x
- bin2dec
x = bin2dec(b) interprets the binary string B and returns in X the equivalent decimal number. Note: The first char of b should not be ZERO because of the bug of Scientific Calculator
- Signed2unsigned
//This function covert an signed integer number into an unsinged //integer number. list is the input vector while width means the //width of input number; //Example: a = [-2,-1,0,1]; //Signed2unsigned(a,2); THEN return [2,3,0,1]