double2expstr

double2expstr(value)

DOUBLE2EXPSTR Convert a value to a string in terms of exp() and a simple rational fraction

Usage:

result = double2expstr(value)

Inputs:

value : double - the numerical value to convert – required

Outputs:

result : char - string representation as ‘n/d*exp(k)’, or ‘’ if no match

Example

result = double2expstr(81.897225049716354); % returns ‘3/2*exp(4)’

See also: double2estr, double2fracstr, double2pifracstr, rat

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿