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 » Scripters
Home Search
 

Re: Please solve this equation.

Previous Thread :: Next Thread 
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 03:11 AM
9^1/2

Too many idiots get this wrong and WILL result in a logic error whilst programming.

Someone tried to argue my answer down, but if you put it through your program, you'll get the right answer.

Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
23 Jun 2012 03:40 AM
9 :3 ?
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
23 Jun 2012 03:42 AM
or 4.

9^1 ... /2 = 4
9^(1/2) = 9 (and 9^0.5 gives me an error...waa!)

> prog.go:8: illegal constant expression: ideal ^ ideal
Report Abuse
Corecii is not online. Corecii
Joined: 06 Aug 2010
Total Posts: 687
23 Jun 2012 03:45 AM
9^1/2

9 to the power of 1 divided by two.

4.5
Report Abuse
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 03:45 AM
...how do you get 4? Maybe your calculator is doing some sort of rounding or is returning an integer result.

4' not the answer and neither is 9.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
23 Jun 2012 03:45 AM
it doesn't make sense D:
9^0.5 so i could do 9*4.5, soooo... 40.5 or 3 like the calculator says?
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
23 Jun 2012 03:47 AM
oh wait Lua gave me different answers:

9^0.5 -- 3

9^1/2 -- 4.5

9^(1/2) -- 3
Report Abuse
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 03:47 AM
@Corecii

Thank you.

I was just afraid for the kids here after three people argued me against that answer (it was a much larger equation, but the confusion was this).

The answer is 4.5.

9^1/2=
9/2=
4.5


The answer is NOT 3.
Just makin' sure you guys understood this.

Sorry for wasting forum space.
Report Abuse
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 03:48 AM
well at least that's 1/3. Not that bad.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
23 Jun 2012 03:49 AM
Was using Go before.

Lua's answers seem more logical.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
23 Jun 2012 03:50 AM
It's quite simple really, you don't need a calculator or anything.

9^1 = 9
9/2 = 4.5
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
23 Jun 2012 03:54 AM
The reason people are debating should be obvious to you.

When it's written down on a page, it may appear as:

0 1/2
!

(The exclamation mark and 0 are meant to look like a 9, but forum will most likely mess it up.)

That would be 3.

By order of operations though, since it's written down on a pretty much single-height line, it'd turn out to be 4.5.
Report Abuse
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 03:59 AM
@trapping

I know, but this is ASCII line math. It's not a scientific equation.

There are different rules.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
23 Jun 2012 04:08 AM
I was stating the reason why people are debating against you. And it's a very good reason. In situations like this you should explicitly put the 9^1 in parentheses to make it clearer.
Report Abuse
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 04:13 AM
trapping, you don't have to make it clear.
ASCII line math has different rules than the setup of an algebraic equation.

This is what people need to get.

When you write an equation:

#^#/(#*#+#)^#

Expect me to solve it as ASCII line math. Because that's what it is.

Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
23 Jun 2012 04:20 AM
You don't need to make it clear but there's no reason not to and it solves any confusion.
Report Abuse
Corecii is not online. Corecii
Joined: 06 Aug 2010
Total Posts: 687
23 Jun 2012 04:20 AM
I'm sure he knows t's different, as do I. But to the people who you were arguing with know? They may of seen it differently. Even if that is the case, it's no different. In both cases they were looking at it the wrong way and JohnFrimp (Who's you realy accountzzzz?!!?!) is right. In both cases the arguers say it as 9^(1/2), which is wrong. The reason may be different, (they MAY OF seen it as ascii art in their heads, but probably not) but the result is still the same.
Report Abuse
JohnFrimp is not online. JohnFrimp
Joined: 07 Jun 2012
Total Posts: 109
23 Jun 2012 04:21 AM
But it wasn't me who was messing it up. It was someone else's equation.
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
23 Jun 2012 05:50 AM
1/2 could've been read as a fraction, which caused the confusion.
Report Abuse
geicogeko is not online. geicogeko
Joined: 27 Apr 2010
Total Posts: 2727
23 Jun 2012 07:25 AM
If this were C, the answer would be 1/2.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
23 Jun 2012 08:28 AM
[ Content Deleted ]
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
23 Jun 2012 08:30 AM
Can't you do

print(9^1/2)

?

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
23 Jun 2012 08:39 AM
9^1/2 is not 9^(1/2), so 4.5
Report Abuse
julienmauriemort is not online. julienmauriemort
Joined: 09 May 2009
Total Posts: 21560
23 Jun 2012 09:45 AM
Lua doesn't use pemdas. It just goes in order of the equation. So you should use:

9^(1/2)
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
23 Jun 2012 10:21 AM
"Lua doesn't use pemdas. It just goes in order of the equation. So you should use:

9^(1/2)"

wat. I don't know of a language that doesn't use order of operations.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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