Scheme: Changing the definition of complex numbers to accept vectors
Basically what I am trying to do is change the definition of complex numbers so I can represent vectors in Scheme. I want to be able to write something like "i+j+k" without the quotes and not have the program go entirely crazy. I know complex numbers can be represented by something like "1+2i" so I was hoping a simple overwrite could accomplish this. I thought overwriting the complex? definition might work, but it seems to have no effect. I am unsure of where the code I need to affect even is. Any help would be amazing. Thanks. Are you aware that the Racket reader already supports complex