answersLogoWhite

0

Use "bc". For example:-

[irb@eddie ~]$ echo "1 + 2 + 3 + 4" | bc

10

[irb@eddie ~]$

Use "man bc" to learn more about this calculator program.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What are the functions of arithmetic logic unit?

The Arithmetic Logic Unit as suggested by the name carries out the arithmetic calculations of the computer.


What arithmetic operator directs Excel to perform the division operation?

the divide symbol (/)


Is it true the arithmetic operator directs excel to perform the division operation?

true


How an ALU differentiate between arithmetic and logic?

It doesn't have to. The ALU is given one or two inputs and is told what operation to perform on them. It has no need to figure out whether that operation is arithmetic or logic, since each individual operation will be different anyway.


What role does the aluop control signal play in determining the arithmetic logic unit's operations?

The aluop control signal determines which arithmetic or logic operation the Arithmetic Logic Unit (ALU) will perform. It acts as a switch that selects the specific operation to be carried out on the input data.


Which are the possibe arithmetic operation with pointers?

Pointers in C are stored as integers. You can perform any mathematical operations on pointers that you can perform on ints.Of course not, the following operations are possible: =, +, +=, ++, -, -=, --, *, [], ->, typecast


What was mathematical operation was stepped reckoner supposed to perfrom?

It was the first calculator that could perform all four arithmetic operations: addition, subtraction, multiplication and division.


What is the operand of arithmetic operators?

Operands are the values or variables on which arithmetic operators perform operations. For example, in the expression "5 + 3", the numbers 5 and 3 are operands, while "+" is the arithmetic operator that indicates the operation to be performed (in this case, addition). Operands can be constants, variables, or expressions that evaluate to a numerical value.


6add8 what does it give you?

The expression "6add8" likely refers to the arithmetic operation of adding 6 and 8 together. When you perform this addition, you get 14. Therefore, 6 plus 8 equals 14.


HOW DOES THE ARITHMETIC LOGIC UNIT AND CONTROL UNIT WORK TOGETHER?

The Arithmetic Logic Unit (ALU) and Control Unit (CU) work together as essential components of a CPU to execute instructions. The CU directs the operation of the processor by fetching instructions from memory, decoding them, and coordinating the flow of data to the ALU. When an arithmetic or logical operation is needed, the CU signals the ALU to perform the specified operation, passing the necessary data. After processing, the ALU sends the results back to the CU, which then determines the subsequent actions based on the results.


What is an accumulator in microprocessor?

the accumulator is an 8-bit register then is part of the arithmetic/logic unit(ALU). this register is used to store to store 8-bit data and to perform arithmetic & logical operation. the result of an operation is stored in the accumulator. the accumulator is also identified as register A.


How do you perform arithmetic operations on binary numbers?

There are a few rules to perform arithmetic operations in binary numbers. According to those rules you can add or subtract binary numbers. There are only two arithmetic operations used in binary numbers, they are addition and subtraction.