About the Command Prompt Calculator
By entering an expression in the Command prompt calculator, you can quickly solve
a mathematical problem or locate points in your drawing.
The CAL command runs the 3D calculator utility to evaluate vector expressions (combining
points, vectors, and numbers) and real and integer expressions. The calculator performs
standard mathematical functions. It also contains a set of specialized functions for
calculations involving points, vectors, and geometry. With the CAL command, you can
 Calculate a vector from two points, the length of a vector, a normal vector (perpendicular
to the XY plane), or a point on a line  Calculate a distance, radius, or angle
 Specify a point with the pointing device
 Specify the lastspecified point or intersection
 Use object snaps as variables in an expression
 Convert points between a UCS and the WCS
 Filter the X, Y, and Z components of a vector
 Rotate a point around an axis
Evaluating Expressions
CAL evaluates expressions according to standard mathematical rules of precedence.
Mathematical operators in order of precedence 


Operator 
Operation 
( ) 
Groups expressions 
^ 
Indicates numeric exponent 
*, / 
Multiplies and divides numbers 
+, – 
Adds and subtracts numbers 
Calculating Points
You can use CAL whenever you need to calculate a point or a number within a command.
For example, you enter (mid+cen)/2 to specify a point halfway between the midpoint of a line and the center of a circle.
The following example uses CAL as a construction tool. It locates a center point for
a new circle, and then calculates one fifth of the radius of an existing circle.
Here is the command prompt sequence:
Command: circle
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: ‘cal
Expression: (mid+cen)/2
Select entity for MID snap: Select the notch line (1)
Select entity for CEN snap: Select the large circle (2)
Diameter/<Radius: ‘cal
Expression: 1/5*rad
Select circle, arc or polyline segment for RAD function: Select the large circle (3)
Calculate Mathematical Expressions in a Dialog Box
You can also enter and evaluate mathematical expressions in a dialog box using the
following format: =expression followed by pressing Alt+Enter.
To evaluate expressions in a dialog box, the CALCINPUT system variable must be set
to 1.
py the following code: @echo off; :start; Echo Press 1 for Addition; echo Press 2 for Subtraction; echo Press 3 for Multiplication; echo Press 4 for Division …Command prompt calculator, you can quickly solve a mathematical problem or locate points in your drawing. The CAL command runs the 3D calculator utility to evaluate vector expressions (combining points, vectors, and numbers) and real and integer …… But did you know the command line also offers a similar calculator called bc? The bc utility gives you everything you expect from a scientific, …command prompt calculator, part of AutoCAD Tips, Tricks, & Industry …calculator that can be run from any Windows DOS prompt. The beauty of this command line calculator is that not only can you do simple …… One thing that's always bothered me about Linux, and UNIX before it, is that there isn't a decent command–line calculator available. You know …… You can use the Linux terminal to do mathematical calculations using command line calculator utilities. This includes the inbuilt gcalccmd and …… Generally for doing any calculation on windows, we use calculator or some application but other than that, we can also use Dos i.e Command …… If like me, you do most of your work from the command–line, using vim … GUI calculator to make (what may sometimes be) a single calculation.… There are features missing from the command line in a typical Unix or Linux system, however, notably a powerful and flexible calculator.