# Imaginary Units

## Recommended Posts

Is there any way to represent "i" in autoit?

By that I'm refering to the Imaginary unit that is equal to "Sqrt(-1)"

Or is the solution to the equation

`x^2 + 1 = 0`

##### Share on other sites

Umm, I don't believe so. What are you making that would need imaginary numbers? Imaginary numbers are just that, imaginary. So for what reason, other than to complete an equation from your Algebra 2 homework, would you like to calculate imaginary numbers?

Edited by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

##### Share on other sites

Umm, I don't believe so. What are you making that would need imaginary numbers? Imaginary numbers are just that, imaginary. So for what reason, other than to complete an equation from your Algebra 2 homework, would you like to calculate imaginary numbers?

lol

Fractals.

##### Share on other sites

Is there any way to represent "i" in autoit?

`-1 * x^0.5`

Let x be 1 or some number.

##### Share on other sites
http://www.dreamincode.net/code/snippet75.htm has some snippet in C++ of doing a custom class do implement this... The concept may be portable to autoit using a custom UDF or somthing. The comments on the page provide other resources.

##### Share on other sites

Not sure if it is essential to your calculations but sometimes if you know the bounds of possible negative coordinates you can offset your data 'up' and 'right' so that everything is the 1,1 quadrant.

jh

##### Share on other sites

He wants imaginary numbers, 15i+3 sort of thing, not negative numbers.

## Create an account

Register a new account

• ### Recently Browsing   0 members

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...