Sign in to follow this  
Followers 0
Paulie

Imaginary Units

7 posts in this topic

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 this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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? :whistle:

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 this post


Link to post
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? :whistle:

lol

Fractals.

Share this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0