Arithmetic/Complex: Difference between revisions

(→‎{{header|C++}}: conjugate)
Line 1,144:
putStrLn $ "Divide: " ++ show (a / b)
putStrLn $ "Negate: " ++ show (-a)
putStrLn $ "Inverse: " ++ show (recip a)</lang>
putStrLn $ "Conjugate:" ++ show (conjugate a)</lang>
 
Output:
Line 1,154 ⟶ 1,155:
Divide: 0.25 :+ 0.5
Negate: (-1.0) :+ (-2.0)
Inverse: 0.2 :+ (-0.4)</lang>
Conjugate:1.0 :+ (-2.0)</lang>
 
=={{header|IDL}}==
Anonymous user