Python scripts for the Calculator Numworks
-
Installation
ONLY WITH CHROME
First of all, go to my workshop at numworks here.
Plug your calculator in your computer and press theSend to the Calculator
button. -
Using the commands
Now that you have installed mathsup and/or physicsup, you will be able to use them.
Unplug your calculator, and open the python app, then, make sure that only mathsup.py and physicsup.py are imported to the console.
To check that, on each script, go in the...
that you see next to the name of the program, and pressOK
orEXE
finally, go down and check the auto-importation in the console.
Go to the console, pressvar
, a list of commands will appear, choose one of them, pressOK
orEXE
.
In the console, you called a function, now you have to pass all the require parameters splitted by a comma and then pressOK
orEXE
.
from mathsup import *
from physicsup import *
# mathsup :
>>> arran(n,k) # return the number of arrangement of k element among n
>>> bin_int(n) # return an integer of the binary number n
>>> combi(n,k) # return the number of element of k element among n
>>> cong(a,n) # return (b, c), the closest int that a ≡ (b, c) [n] (b is positive and c not)
>>> congi(a,n) # return the closest integer b so a ≡ b [n] (b can be negative)
>>> dioph(a,b) # return the couple (u,v) so a*u+b*v = 1
>>> dioph(a,b,c) # return the couple (u,v) so a*u+b*v = c
>>> dioph(a,b,c,1) # return the couple list (u,v) so a*u+b*v = 1
>>> dioph(a,b,?c,?1) # In general : return always a couple (u,v) so a*u+b*v = c
# If c is not defined, c = 1
# If 1 is not defined, 1 = 0, thus return a couple (u,v)
# Else, return all couples list.
>>> disc(a,b,c) # return b²-4*a*c
>>> dive(a,n) # return the couple of the euclide's division of a by n : (q,r) -> a = n*q+r
>>> divint(n) # return a list of all the integer that divide n
>>> divcom(a,b) # return a list of all the common integer that divide a and b
>>> egcd(a,b) # return (g, x, y) such that a*x + b*y = g = gcd(a, b)
>>> fact(n) # return n!
>>> factor(n) # return a list of all the prime factor of n
>>> gdiv(n) # return the greatest common divisor of n (different from n)
>>> gprdiv(n) # return the greatest prime common divider of n
>>> int_bin(n) # return n in binary
>>> invmod(a,b) # return the inverse of a mod n
>>> iscong(a,b,n) # return bool if a ≡ b [n]
>>> nbdiv(n) # return the number of divisor of n, faster than len(divint(n))
>>> nprime(n) # return the list of all the prime number between 0 and n
>>> pi(n) # return an approximation of pi, more accurate for big n
>>> permut(n) # return all the permutation of n element i.e. n!
>>> pgcd(a,b) # return the greatest common divisor of a and b
>>> ppcm(a,b) # return the smallest commun muliplier of a and b
>>> prime(n) # return bool if n is a prime integer
>>> q(a,n) # return the integer quotient of the euclide's division of a by n.
>>> r(a,n) # return the rest of the euclide's division of a by n, only positive value.
>>> sdiv(n) # return the smallest divisor of n (different from 1)
>>> sprdiv(n) # return the smallest prime divisor of n
>>> tp(x,y,z) # return bool if x,y,z is a pythagorician triplet.
# physicsup :
>>> pvnrt(p,v,n,t) # return the value that you want, pass all the parameter you have and the one you want to know the value,
# put a "" in the function, it will be calculated.
>>> pvnrt(1000, "",5,4000) -> V = 16.62m^3
>>> rho(m,V,p) # same operating system here is p = m/V, you can use it on every equation like this.
Feel free to dm me on Discord : Mino#1289
Or create an issue and explain your problem :)