i have completely rewritten the calculator so here it is
10.10.2006 Updates: - _IsPrime updated for 2 - Flickering mousecursor fixed;)
Regards Daniel W.
Attached Files
Edited by Daniel W., 10 October 2006 - 04:35 PM.
Posted 26 May 2006 - 04:04 PM
10.10.2006 Updates: - _IsPrime updated for 2 - Flickering mousecursor fixed;)
Edited by Daniel W., 10 October 2006 - 04:35 PM.
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 26 May 2006 - 05:16 PM
Posted 26 May 2006 - 05:18 PM
Solve(5 = x - 3 , x)
x = 8
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 26 May 2006 - 05:39 PM
MsgBox(0,0,Solve("6 = x - 6", "x")) Func Solve($equation, $char) $equation = StringStripWS($equation, 8) $split = StringSplit($equation, "=") $side = 2 If StringInStr($split[1], $char) <> 0 Then $side = 0 If StringInStr($split[2], $char) <> 0 Then $side = 1 If $side = 0 Then ;left For $i = -1000 To 1000 $test = StringReplace($split[1], $char, "(" & $i & ")") If Execute($test) = $split[2] Then Return $i Next ElseIf $side = 1 Then ;right For $i = -1000 To 1000 $test = StringReplace($split[2], $char, "(" & $i & ")") If Execute($test) = $split[1] Then Return $i Next Else Return 0 EndIf EndFunc
Edited by RazerM, 26 May 2006 - 06:25 PM.
Posted 26 May 2006 - 10:05 PM
Edited by The Great 'Awesoma-Powa!', 26 May 2006 - 10:09 PM.
Posted 26 May 2006 - 10:21 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 26 May 2006 - 10:41 PM
Posted 26 May 2006 - 11:06 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 27 May 2006 - 12:53 AM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 27 May 2006 - 06:44 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 27 May 2006 - 11:07 PM
Posted 27 May 2006 - 11:44 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 27 May 2006 - 11:49 PM
Hi,
not bad, but I don't like the RegWrite! What about an ini file instead of that?
So long,
Mega
P.S.: Warum schreibt man einen Taschenrechner, wenn er bei Windows dabei ist.Schulprojekt?
Posted 27 May 2006 - 11:50 PM
Hi,
i could do it with ini but whats so bad with ONE registry key?
PS: Ne aber warum macht man für nen SPiel ne Mod?
Weil man findet das was fehlt
Ist nicht für Schule btw
Edited by th.meger, 27 May 2006 - 11:51 PM.
Posted 27 May 2006 - 11:57 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 28 May 2006 - 12:14 AM
Edited by Daniel W., 28 May 2006 - 12:15 AM.
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 28 May 2006 - 03:04 AM
Func _solve($gleichung, $char) $gleichung = StringStripWS($gleichung, 8) $split = StringSplit($gleichung, "=") $side = 3 If StringInStr($split[1], $char) = 1 and StringInStr($split[2], $char) = 1 Then $side = 2 If StringInStr($split[1], $char) <> 0 Then $side = 0 If StringInStr($split[2], $char) <> 0 Then $side = 1 If $side = 0 Then ;left For $i = -1000 To 1000 $test = StringReplace($split[1], $char, "(" & $i & ")") If Execute($test) = $split[2] Then Return $i Next ElseIf $side = 1 Then ;right For $i = -1000 To 1000 $test = StringReplace($split[2], $char, "(" & $i & ")") If Execute($test) = $split[1] Then Return $i Next Return 1 ElseIf $side = 2 Then ;both For $i = -1000 to 1000 $test1 = StringReplace($split[1], $char, "(" & $i & ")") $test2 = StringReplace($split[2], $char, "(" & $i & ")") If $test1 = $test2 Then Return $i Next Return 1 Else Return 0 EndIf EndFunc
Edited by Daniel W., 28 May 2006 - 03:10 AM.
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 28 May 2006 - 04:49 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
Posted 28 May 2006 - 06:12 PM
Posted 28 May 2006 - 08:49 PM
Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.
0 members, 0 guests, 0 anonymous users