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

Questions about programming?Chat with your personal AI assistant