generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Complex Numbers in Lua?

Previous Thread :: Next Thread 
DynamicVariable is not online. DynamicVariable
Joined: 20 Nov 2010
Total Posts: 466
27 Nov 2012 06:47 PM
Is there a built in method in Lua for using complex numbers?
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
27 Nov 2012 06:49 PM
I don't quite understand what you are looking for.
Report Abuse
drgn42 is not online. drgn42
Joined: 11 Feb 2010
Total Posts: 3231
27 Nov 2012 07:26 PM
Complex?

Just thought I'd let you know.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
27 Nov 2012 07:26 PM
No, but you could script it :)

@Everyone else
Complex numbers are those that deal with the imaginary number 'i'

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
DynamicVariable is not online. DynamicVariable
Joined: 20 Nov 2010
Total Posts: 466
27 Nov 2012 07:40 PM
Thanks swim, but that would be a job in itself :D Any yeah, elaborating a tiny bit on what swim said:

The imaginary unit, i (sometimes j) represents the square root of -1. This does not belong to the set of real numbers, since it's, well, impossible to multiply two normal numbers and get a negative number. However, we can express this as a multiple of i;

sqrt(-4) = sqrt(-1)*sqrt(4) = i*4 = 4i

These are quite important in algebra as well as the linking of algebra to trigonometry. For example, Euler's equation states that:

e^(i*pi) = cos(x) + i*sin(x)

Just food for thought :)
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
27 Nov 2012 07:41 PM
It's scriptable, but very few languages acutally support them.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
27 Nov 2012 08:16 PM
I hate imaginary Numbers. I want to know a Decimal Version of 'i' [The Square root of -1]
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
27 Nov 2012 08:33 PM
Yes. If you want to make use of *, +, -, /, etc, you could use metatables.
Although I think certain operations would still be undefined, for example

5 + i.
I am not certain if metatables can properly take in values from the left.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image