Tiny script for counting examples of several math situations. All functions expect valid input.
It's possible to include it directy:
<script src="http://pesout.github.io/countiny.js/countiny.js"></script>countiny_quad(a, b, c, x);A,BandC- CoefficientsX- A root number (1 or 2)
countiny_fctr(a);countiny_comb(n, k);- Numerator:
n! - Denominator:
k! * (n-k)!
countiny_vari(n, k);- Numerator:
n! - Denominator:
(n-k)!
countiny_alog(a, x);- Base:
a - Argument:
x - Numerator:
log(x) - Denominator:
log(a)
countiny_root(x, n);countiny_dgrd(deg);countiny_dgrd_pi(deg, pi_sign);deg- inputpi_sign: logic variable (trueorfalse)- If pi_sign is true, output will look like
2π - If not, output will look like
2
countiny_rddg(rad);a- A whole numberb- A value of percentagesc- A part of a whole number
countiny_perc_part(a, b);countiny_perc_whol(b, c);countiny_perc_pers(b, c);countiny_rang(a, min, max);a- the numbermin- minimal value in the rangemax- maximal value in the range- This function returns
trueorfalse
countiny_nrnd(num, dec);num- an input numberdec- how many decimal places