Changes between Version 105 and Version 106 of IR2


Ignore:
Timestamp:
05/14/21 16:41:00 (5 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IR2

    v105 v106  
    347347$float32 $round32($real x, $int mode);  // round to float32 (see modes above)
    348348$float64 $round64($real x, $int mode);  // round to float64 (see modes above)
    349 <T> T $abs(T x);  // absolute value (T must be a numeric type)
    350 <T> T $pow(T x, $int n);  // x to the n-th power.  T must be a numeric type; n>=0.
     349$real $abs($real x); // absolute value on reals
     350$int $absi($int x); // absolute value on integers
     351$float32 $abs32($float32 x); // absolute value on $float32
     352$float64 $abs64($float64 x); // absolute value on $float64
     353$real $pow($real x, $int n);  // x to the n-th power.  n>=0
     354$int $powi($int x, $int n);
     355$float32 $pow32($float32 x, $int n);
     356$float64 $pow64($float64 x, $int n);
     357// do we need herbrand versions of above?  make these expressions?
     358// trig functions? pi?
    351359<T> T $eval($herbrand<T> x);  // returns value of type T obtained by evaluating all the delayed operations
    352360<T> $herbrand<T> $herbrandize(T x);  // trivial symbolic expression consisting of a single node