Skip to content

Instantly share code, notes, and snippets.

@aviaryan
Last active December 17, 2015 11:08
Show Gist options
  • Save aviaryan/5599464 to your computer and use it in GitHub Desktop.
Save aviaryan/5599464 to your computer and use it in GitHub Desktop.
Maths Test Script -
SetWorkingDir %A_ScriptDir%
var = sqrt(4) - [892839.2382389 - 89238239.923]
msgbox,% SM_Solve(var)
msgbox,% SM_Solve("log(2) + log(3) + log(4) - 23898238239.32 * 3282398239238.92382 / 892382938239.8923")
msgbox,% SM_Solve("Sqrt(4) * 2 * log(100) / 32")
msgbox,% SM_UniquePmt("avi,annat,koiaur,aurkoi") ;no of permutation = 24
msgbox,% SM_UniquePmt("abd", 3) ;no of permutation = 6
msgbox,% SM_UniquePmt("abcdefghijklmnop",2)
msgbox,% SM_Divide("12091201290129.238928392389238239823" , "327823782378237238.23823982398239238")
MsgBox,% SM_Divide("434343455677690909087534208967834434444.5656", "8989998989898909090909009909090909090908656454520", 10)
msgbox,% SM_Divide("832892344334923892389238239","23782378237238723823")
Msgbox,% SM_Divide("22","7", 100) ;<--- pi till 100 decimals
msgbox,% SM_Add("348349843943894389438439843943894384398439","3489348943029023923092309230239203")
msgbox,% SM_Add("-1000000000000000000", "100000000000000000")
msgbox,% SM_Multiply("9999999999999999999999999999999","555555555555555555555555555555")
msgbox,% (SM_Greater("832892344334923892389238239","832892344334923892389238238")) ? ("first one is greater") : ("second is greater")
msgbox,% SM_Pow("12","32")
msgbox,% SM_Mod("-22","-7")
msgbox,% SM_Round("22389238923823823.2377378", 3)
msgbox,% SM_Prefect("00.2378237823723800")
#Include, Maths.ahk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment