Writing math functions in an Scripting language
Page 1 of 1 • Share •
Writing math functions in an Scripting language
Is there possibility of writing functions in an scripting language (Python or Jython, for instance) in this calculator: ?
PhytonGu- Guest
Re: Writing math functions in an Scripting language
Currently you can define your own functions in a very simple and clear way!
For example the following simply raises the first parameter to power of the 2nd param:
f(x,y)=x^y
You can even define recursive functions. The following is factorial:
fac(x)=x*f(x-1); x>1
fac(x)=1; x<=1
as shown below:

This is why we didn't feel the need to use other scripting languages.
Let me know if you don't feel this is enough
For example the following simply raises the first parameter to power of the 2nd param:
f(x,y)=x^y
You can even define recursive functions. The following is factorial:
fac(x)=x*f(x-1); x>1
fac(x)=1; x<=1
as shown below:

This is why we didn't feel the need to use other scripting languages.
Let me know if you don't feel this is enough
Admin- Admin
- Posts: 57
Join date: 2007-12-05

Permissions of this forum:
You can reply to topics in this forum





