Thread: complex numbers
View Single Post
  #1 (permalink)  
Old 11-03-2007, 08:16 AM
kenna kenna is offline
Learning Programmer
 
Join Date: Jul 2007
Posts: 30
Rep Power: 5
kenna is on a distinguished road
Default complex numbers

How useful would complex numbers be in a programming language?

There are eight basic arithmetic operations in my language, more complex operations are in a separate mathematic library, so it wouldn't be a fully fledged system for using complex numbers.
  • addition
  • subtraction
  • multiplication
  • division
  • exponentiation
  • additive inverse
  • multiplicative inverse
  • absolute value

So far my language has only three data types, bit (b), integer (n), and fraction (n,d), but I've been wondering whether it would be useful to add a complex (a,bi) data type too.
Reply With Quote

Sponsored Links