Generation

generate functionSun, 13 Nov 2022

compute taylor expansion

exp :: Int -> Double -> Double exp 0 x = 1.0 exp n x = (x^n)/(fromIntegral (factorial n)) + exp (n-1) x

Want to kickstart your project?Use the new AI Studio to create your code