Block: Exp



PIC




Inports


In

Input u






Outports


Out

Result of exp(u)




Description:

Computation of the exponential of the input.

Calculation Floating Point Implementation:

Out =  eIn

Calculation Fixed Point Implementation:

       { In
        e    In ≤ 0
Out =   1    In > 0

Error for 16 Bit Fixed Point Implementation:


PIC


Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP8


8 Bit Fixed Point Implementation



Inports Data Type


In

int8






Outports Data Type


Out

int8




Implementation: FiP16


16 Bit Fixed Point Implementation



Inports Data Type


In

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


In

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


In

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


In

float64






Outports Data Type


Out

float64