Web Hosting by
Netfirms
|
Free Domain Names by
Netfirms
WebSite and Software Development
Home
News
Buiz
Weather
Games
Developers
Comix
Software & More
RHSCoder
VBS QuickDev IDE
AI Depot
Generation 5
contact us
Xpounded Simple Math Library
Copy and Paste and Use this Simple Math Library
Includes methods for Factorials and Matrix Multiplication
 
Select All
math={ fact: function(n){return((n==1)?n:n*this.fact(n-1))}, fib: function(n){return((n<2)?1:this.fib(n-1)+this.fib(n-2))}, gcd: function(n,m){do{quot=Math.floor(n/m);rem=n-quot*m;n=m;m=rem}while(m!=0);return n}, lcd: function(n,m){return m*n/this.gcd(n,m)}, combo: function(n,m){return this.fact(n)/(this.fact(n - m) * this.fact(m))}, permu: function(n,m){return this.fact(n)/this.fact(m)}, isPrime: function(n){for(var i=2;i
(Save this as a file with a *.js extension, or include it directly in your script)
- Copyright 2003
Xpounded
-
All JS code developed by Xpounded is developed in RHSCoder.
All VBS code developed by Xpounded is developed in VBS QuickDev IDE, or RHSCoder.
Privacy Statement
Feedback