Google is known for its frequent features that it integrate in its world. One such cool feature that is am going to discuss in this post is ‘Google Calculator’
How to use the Google Calculator:
You require no special syntax or code for the “gcalc or google calculator” to work. You just simply type the first number , the operators and the second number.
Some examples are:
- for addition -> 3+44
- for subtraction -> 13-5
- for multiplication -> 7*8
- for division -> 12/3
- for exponentiation ( raise to a power of)-> 8^2
- % modulo (finds the remainder after division) ->8%7
- nth root of calculates the nth root of a number -> 5th root of 32
Some operators work on only one number and should come before that number. In these cases, it often helps to put the number in parentheses.
Some Examples are:
- square root -> sqrt(9)
- sin, cos, etc. trigonometric functions -> sin(pi/3)
- tan(45 degrees)
- ln logarithm base -> e ln(17)
- log logarithm base -> 10 log(1,000)
A few operators come after the number:-
- !, factorial -> 5!
Other good things to know:-
You can force the calculator to try to evaluate an expression by putting an equals sign (=) after it. This only works if the expression is mathematically resolvable. For example, 1-800-555-1234= will return a result, but 1/0= will not.
Parentheses can be used to enclose the parts of your expression that you want evaluated first. For example, (1+2)*3 causes the addition to happen before the multiplication also called BODMAS rule.
The “in“ operator is used to specify what units you want used to express the answer. Put the word in followed by the name of a unit at the end of your expression. This works well for unit conversions such as: 5 kilometers in miles.
The calculator understands many different units, as well as many physical and mathematical constants. These can be used in your expression. Many of these constants and units have both long and short names. You can use either name in most cases. For example, km and kilometer both work, as do c and the speed of light.
Feel free to experiment with the calculator as not all of its capabilities are listed here. To get you started, I’ve included a few expressions linked to their results.
- 1 a.u./c
- 1.21 GW / 88 mph
- e^(i pi)+1
- 100 miles in kilometers
- sine(30 degrees)
- G*(6e24 kg)/(4000 miles)^2
- 0x7d3 in roman numerals
More info at :