11. februar 2010

/chrpw - ascii table in pw

/*
Type /chrpw to open the table you can right click to copy the ascii value in decimal or hexadecimal and also change the font.

*/

10. februar 2010

$asize; Alias size

/*
$asize(text).[s]

returns the size of the alias , if the property s is used then it will also count spaces and linebreak.

Note: make sure the alias is not on a ini file.
*/

$gcd and $lcm ; greatest common divisor and least common multiple

/*

$gcd(n,m) the greatest common divisor of m and n
$lcm(n,m) the least common multiple of m and n

*/

$fato; Prime factorization snippet

/*
$fato(N,[chr]).[k]
returns the prime factorization of a number N, the chr is the ASCII value of the character that will separate the factors , if omitted the value used will be 32 (space). The k property indicates to whether or not use the power notation as shown in the examples below

$fato(36) : 2 2 3 3
$fato(50,44) : 2,5,5
$fato(8).k : 2^3
$fato(36,44).k : 2^2,3^2
*/