Tuesday, May 21, 2013

Maths() Online Reference

Maths() Reference

Download
Ahk Topic
ChangeLog
More Notes

List

Solve()

Points
  • Solves a Mathematical expression in a string
  • Solve() supports infinetly large numbers and its +-/* is powered by the respective custom functions (Evaluate, Multiply, Divide).
  • Solve() supports functions() and Nesting via [] brackets ( not () )
  • Please use function Pow(number, power) in place of ** in equations

Examples
Msgbox,% Solve("1 + 3.5 - [2 * 3] + Antilog(0.3010, ""e"")")
In the above example notice the use of [...] brackets in [2 * 3] . Make sure you use them.
Also, notice the use of double quotes ("") in Antilog(0.3010, ""e"") to escape them.

var = sqrt(4) - [nthroot(17248,3) * antilog(0.3010)] * [892839.2382389 - 89238239.923]
msgbox,% Solve(var)
In the above example, var has the equation.


Evaluate()

Points
  • Adds two infinetly large numbers . Supports decimal and negatives.
  • Please feed numbers into the function as strings (See below)
number1 = 3292389200000000000382398232309.239230923092302390239230
number2 = 239209239230290239239049349309403434.34930909090
Msgbox,% Evaluate(number1 ,number2)
Msgbox,% Evaluate(number1, "-" . number2)
In the above example, notice the use of = in place of :=
To minus two numbers , look at the 2nd Msgbox "-" . number2


Multiply() and Divide()

Points
  • Feed large numbers as Strings
  • Better recommended to keep the length param of Divide as 10 which is default. If you want more preciseness you can move it to anything.
  • Divide() has smartround which means something like 0.000000003433423 with a length 3 will not give 0.000 but 0.00000000343

Examples
MsgBox,% Divide("434343455677690909087534208967834434444.5656", "8989998989898909090909009909090909090908656454520", 10)
msgbox,% Divide("22","7",100)  ;<--- 100 Decimal places
MsgBox,% Multiply("111111111111111111111111111111111111111111.111","55555555555555555555555555555555555555555555.555")


Roots()

Points
  • Gives roots of a polynomial functions
  • Can be slow and buggy at times
  • Can be inaccurate

Examples
msgbox,% Roots("1,1,1,-3")      ;xcube + xsq + x - 3 = 0
msgbox,% roots("1,1,1,1,-10")   ;x4 +xcube + xsq + x - 10 = 0


UniquePMT(series, Index)

Points
  • Gives unique Permuation for a given Index where Index < No of Permutations
  • Make Index = All to list down all possible permutations

Examples
msgbox,% UniquePMT("avi,annat,koiaur,aurkoi", "All")  ;no of permutation =  24
msgbox,% UniquePMT("abd", 3)    ;no of permutation = 6



More Notes

  • Greater() , fact() , Power() and Prefect() support larger than life numbers . So, feed numbers as strings in them.
  • Roots() may have problems . Currently , it seems Roots() has problems with higher deegree polynomials (>3) with larger coffecients (>10). Please dont try to test equations in Roots(). More often than not, it will not be processed.
  • FloorG() and ModG() are just like Floor() and Mod() but for larger numbers
  • And dont forget to feed numbers as strings . DONT


More Examples



3 comments:

  1. Knοwing the mоrtgage bаnκ you actually talκ with designеd for gгeаtеst
    paуday loans can be a good suggeѕtion. The more ouг
    own customеrs diѕcoѵer usа, greater theу саn complеtе the аpρrοvаl tο get finances.

    Wіth a gгeat numbеr of lenders tο сhοоse fгοm, you've got the selection hence you'll want to complete a eхсellent choice.
    Sеeking out for a loаn service thаt reѵenue loans ωhen using
    the mοst beneficiаl quotes is. You apρeагs to
    gеneгally be ρriνatеlу of mіnimаl deals when сompагed tо аdԁіtiοnal loan сompaniеs all-агound Ϻodern
    australia.

    Many оf uѕ spеcialize in makіng a pοint yоu obtaіn thе
    tоp go through all the tіme yоu neeԁ vaгiоus eхtrа cаsh.
    Wеb sites pауԁay cash lоanѕ if аnуone else iѕ that wіll гeѕide in Queensland and also who may hаѵe moneу.
    We рrovide kіnd degгeеs of bucks sο уοu can get your
    mοney you'll need within weeks in any respect. Barstools2u . com offers poor credit ranking funds therefore you do not need to be anxious that overall credit score isn’t increased enough.

    Inside a few units you will be able to make sure you enter a lot of our application. Or maybe intention can be to allow anyone to submit an application lacking any concerns. Many of us check with virtually no issues not to mention work with the fact that information to figure out the eligibility. The sooner within the time you ought to request cash, the actual faster we will have them permitted to suit your needs.

    Accomplishing this involves us instantly adding the particular resources everyone settle for into your money. In case you fill out an application early in the day you actually can get hold of that will finances the identical time. Actually, the monies will probably be available in the morning. While pretty decent pay back terms and we'll ѕet it uр your money can buy toωагԁs emerge fгom
    onеs spіne aκun easily.


    You wаnt want you to dіscover anуone аren’t by уοursеlf ωhеn you havе towarԁs reсеive bucks.
    Νow wе have very gоod cuѕtomer ѕervice а ρerѕon
    who attеntion. You'll be able to get hold of individuals by talk, cell phone, and / or electronic mail. Also you can consult them all whenever of the day time or overnight. Most people in addition have around the clock bank loan refinement.

    Prior to when you consider most beneficial cash advance loans because of any place else, you'll want to іnѵestigate
    cuгes can οffеr. Weгe an іdеal method to get hold of paуday саsh advanсes for just
    аbout any disaѕtег ωill neeԁ you'll have. We provide a simple internet request so that you can acquire money borrowing products not before long. Don’t make application for damaging credit ratings lending products anywhere else or even you'гe paying out excеssively.



    Also vіsit my web blog ... kredyt bez bik

    ReplyDelete
  2. I'm impressed, I must say. Rarely do I encounter a blog that's both educative and interesting, and let me
    tell you, you've hit the nail on the head. The problem is something not enough folks are speaking intelligently about. Now i'm very happy that I found
    this during my search for something concerning this.


    Also visit my website ... gagner de l'argent

    ReplyDelete
  3. My partner and I stumbled over here by a different website and thought I might as well check things out.
    I like what I see so i am just following you.
    Look forward to looking at your web page repeatedly.

    Here is my blog :: phenixoption

    ReplyDelete