| I created a similar JavaScript once. The tricky part is designing division.
Since you have implemented addition in your code, I suggest you make it a seperate function, and add subtraction and division as well. My plan was creating an extensive library that would contain the previously mentioned functions and sqr (using the newton method), e raised to n power (taylor), n digits of pi (using gauss legendre), remainder (%), highest common factor, natural logarithm (taylor), and cos/sin/tan (taylor). These shouldn't be too hard implementing after you've breached the barrier with addition/subtraction and multiplication/division. Allthough they should not be coded in mIRC if one is to perform large calculations. I can think of no other usage for this <:)Text edited by author on Aug 5, 2004 @ 1:27PM |
|