pascalexponentialturbo-pascal

How do I write an exponential function (e^x)?


I want to be able to pass integer values to a function - e^x and return the result. Based on reccurence relation of e^x. Can someone help me with this?

Thanks in advance.


Solution

  • You don't need to do that. Pascal already has this function: exp(x).