[{"data":1,"prerenderedAt":152},["ShallowReactive",2],{"tool-content-en-expression-calculator":3},{"id":4,"title":5,"body":6,"description":142,"extension":143,"locale":144,"meta":145,"navigation":146,"path":147,"seo":148,"stem":149,"toolId":150,"__hash__":151},"tools\u002Ftools\u002Fen\u002Fexpression-calculator.md","Expression Calculator",{"type":7,"value":8,"toc":134},"minimark",[9,14,34,38,104,108,127,131],[10,11,13],"h2",{"id":12},"expressions","Expressions",[15,16,17,18,22,23,22,26,29,30,33],"p",{},"Type a formula and the result updates as you go: ",[19,20,21],"code",{},"2^10 + sqrt(144)",", ",[19,24,25],{},"1000*12%",[19,27,28],{},"sin(90)"," in degree mode, ",[19,31,32],{},"3(4+5)"," with implicit multiplication. A missing closing parenthesis is completed for you, and the keyboard and the on-screen keypad stay in sync.",[10,35,37],{"id":36},"functions-constants-and-bases","Functions, constants, and bases",[15,39,40,41,44,45,44,48,51,52,22,55,22,58,61,62,65,66,22,69,72,73,76,77,22,80,22,83,86,87,22,90,22,93,22,96,99,100,103],{},"The function set covers trigonometry, logarithms, roots, rounding, ",[19,42,43],{},"min","\u002F",[19,46,47],{},"max",[19,49,50],{},"hypot"," and factorials, with ",[19,53,54],{},"pi",[19,56,57],{},"e",[19,59,60],{},"tau"," and ",[19,63,64],{},"phi"," as constants. Numbers may be written as ",[19,67,68],{},"0x1f",[19,70,71],{},"0b1010"," or ",[19,74,75],{},"0o17",", integer results also show their hex, octal and binary forms, and ",[19,78,79],{},"\u003C\u003C",[19,81,82],{},">>",[19,84,85],{},"~"," plus ",[19,88,89],{},"and()",[19,91,92],{},"or()",[19,94,95],{},"xor()",[19,97,98],{},"not()"," handle bitwise work. ",[19,101,102],{},"^"," stays a power operator.",[10,105,107],{"id":106},"variables-and-history","Variables and history",[15,109,110,111,114,115,118,119,122,123,126],{},"Assign a value (",[19,112,113],{},"x = 3",") to store a variable, reuse ",[19,116,117],{},"ans"," for the previous result, and press Enter to push a calculation onto the history list. An entry that starts with an operator continues from the last result, so ",[19,120,121],{},"7*8="," followed by ",[19,124,125],{},"+2="," gives 58. Click any history entry or variable to put it back into the expression, or use the up and down arrow keys to walk the history.",[10,128,130],{"id":129},"privacy","Privacy",[15,132,133],{},"Every calculation runs locally in your browser. Expressions, variables and history never leave the device.",{"title":135,"searchDepth":136,"depth":136,"links":137},"",2,[138,139,140,141],{"id":12,"depth":136,"text":13},{"id":36,"depth":136,"text":37},{"id":106,"depth":136,"text":107},{"id":129,"depth":136,"text":130},"Evaluate math expressions with functions, constants, variables, and history, entirely in your browser.","md","en",{},true,"\u002Ftools\u002Fen\u002Fexpression-calculator",{"title":5,"description":142},"tools\u002Fen\u002Fexpression-calculator","expression-calculator","-5Ua_xrrWrg7iJLV5MYhNF1YYiZWEyTW7HsVf5Gu6LQ",1792391417479]