Rules for calculations

Desciption

Given a set of caclulation for real numbers with some special values

With this special values the rules below apply.

A set of calculation routines based on this special values and rules can also easily deal with overflow and underflow.
Functions calculated with such routines (like sine and log) will also give "proper" results. So tan(½ pi) will give oo.

Rules

Addition

0

y

oo

?

0

0

y

oo

?

x

x

x + y

oo

?

oo

oo

oo

?

?

?

?

?

?

?

 

Subtraction

0

y

oo

?

0

0

-y

oo

?

x

x

x - y

oo

?

oo

oo

oo

?

?

?

?

?

?

?

 

Multiplication

0

y

oo

?

0

0

0

?

?

x

0

x * y

oo

?

oo

?

oo

oo

?

?

?

?

?

?

 

Division

0

y

oo

?

0

?

0

0

?

x

oo

x / y

0

?

oo

oo

oo

?

?

?

?

?

?

?