Fixed Point Maths

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 10 - Exponential function

    To decide what real number is e to the power (N - a real number):
        let result be 1.0000;
        repeat with X running from 1 to 7:
            let temp1 be N to the power X;
            let temp2 be the factorial of X;
            let temp1 be temp1 real divided by temp2;
            let result be result real plus temp1;
        decide on result.

    To decide what real number is e to the power (N - a number):
        let temp be N as a fixed point number;
        decide on e to the power temp.