SRL Archive - Help and Support

And... Again? Maths.


R0b0t1

2008-04-29 20:26:01

http://pastebin.com/f3354e2d7


WHY.

WHY.


WHHHHHHHHHHHHHHHHHHHHHHHYYYYYYYYYYYYY!!!!!!!!!!!!!!!!

[-jesus-]

2008-04-29 21:03:32

Post on a diff site plz… Pastebin links never work for me, ever, besides the main www.pastebin.com

http://rafb.net/paste/ plz <<<

Bobarkinator

2008-04-29 21:10:24

http://rafb.net/p/DX8kus87.html

HyperSecret

2008-04-30 01:47:26

isn't it doing what you want? I'm kind of confused…because it seems to being doing what your trying to do. The print out is telling you that when A = 3 those values of X are when the 2 values multiplied = the one value…isn't that what your trying to find?

mixster

2008-04-30 13:07:11

I would suggest adding brackets in the if as I believe Scar will read it differently to what you want e.g. instead of (3 * 5 - 1) being ((3 * 5) - 1) you may end up with (3 * (5 - 1)) where the first gives you an answer of 14 and the second 12 :)

HyperSecret

2008-04-30 17:46:36

From: mixster
I would suggest adding brackets in the if as I believe Scar will read it differently to what you want e.g. instead of (3 * 5 - 1) being ((3 * 5) - 1) you may end up with (3 * (5 - 1)) where the first gives you an answer of 14 and the second 12 :)


scar follows the order of operations


program New;
begin
writeln(inttostr(4 * 3 + 1));
end.

answer = 13;

Bobarkinator

2008-04-30 19:13:52

From: HyperSecret
scar follows the order of operations


program New;
begin
writeln(inttostr(4 * 3 + 1));
end.

answer = 13;


Boo! Bad example :p. That problem is written in the order of operations already.(multiplication then addition).

WriteLn(IntToStr(4 + 1 * 3));

Answer = 7

R0b0t1

2008-04-30 19:23:14

Soo…. ….


Anything else?


I mean, if it prints out so many outputs, I need to find the corralation. It means that A = x some operations.