资 源 简 介
phoc is a programmable calculator, which stand for Programmable Hign-Order-Calculator, and powered by script language, currently is JavaScript. But it"s may language-independent, I"ll add python later to pcalc.
phoc is look like this:
## Expression evaluation ##
phoc can of course do the normal compute such as expression evaluation:
(1+2)*8/6sin(PI)*cos(PI/2)
Define functions
also, phoc can support user-defined function, such as:
function add(x, y){ return x + y;}add(3, 5)
or
```
function sum(){
//code to calc sum
}
sum(1, 3, 34, 566, 57, 6, 7, 78, 787)
```
Plot function
and phoc can _plot_ those functions too. such as:
plot2d(s