Changes between Version 131 and Version 132 of IR2
- Timestamp:
- 06/16/21 14:30:19 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IR2
v131 v132 400 400 <$int s> $float<s> $absf($float<s> x); // absolute value on $float 401 401 $real $pow($real x, $int n); // x to the n-th power. n>=0 402 $int $powi($int x, $int n); 403 <$int s> $float<s> $pow ($float<s> x, $int n);402 $int $powi($int x, $int n); // 403 <$int s> $float<s> $powf($float<s> x, $int n); 404 404 // trig functions? pi? 405 405 <T> T $eval($herbrand<T> x); // returns value of type T obtained by evaluating all the delayed operations … … 408 408 }}} 409 409 410 * Is it OK to have parameterized functions that only work for certain T? Would it better to expand for each numeric type? E.g., absi, abs, abs32, abs64, ...410 * What about Herbrand versions of above functions? Could we instead introduce an operator for power? **? Could make all of these functions part of the language instead (grammar). 411 411 412 412 === `mem.cvh` ===
