s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

algebraic functions #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
int ceil (X)
     Return the smallest integer not less than X.

int floor (X)
     Return the largest integer not greater than X.

int round (X)
     Return the integer nearest to X.

real fmod (X, Y)
     Compute the floating point remainder of dividing X by Y using the
     C library function `fmod'.  The result has the same sign as X.  If
     Y is zero - TBD

Original issue reported on code.google.com by krustev....@gmail.com on 16 Jun 2010 at 11:10

GoogleCodeExporter commented 9 years ago
... more ...

int mod (X, Y)
     Compute modulo function. Conceptually this is given by

          x - y .* floor (x ./ y)

     and is written in a manner that the correct modulus is returned for
     integer types. This function handles negative values correctly.
     That is `mod (-1, 3)' is 2, not -1 as `rem (-1, 3)' returns.
     Also, `mod (X, 0)' returns X.

real/int power (x,y)
   returns x^y 

Original comment by krustev....@gmail.com on 16 Jun 2010 at 11:21

GoogleCodeExporter commented 9 years ago
... more ...

real sqrt (X)
     Compute the square root of X.  If X is negative - TBD

Original comment by krustev....@gmail.com on 16 Jun 2010 at 11:23

GoogleCodeExporter commented 9 years ago
Functions added in r1560. Remaining activities:
- eventually warning messages if (for example) we have division by zero. 
Currently TELL behaves exactly as the underlying C functions.
- Documentation

Also modulo for integer is not added. Considering a % operator.

Original comment by krustev....@gmail.com on 28 Jun 2010 at 10:47

GoogleCodeExporter commented 9 years ago
Documentation done - remains to be published

Original comment by krustev....@gmail.com on 12 Jul 2010 at 8:24

GoogleCodeExporter commented 9 years ago
Documentation done - remains to be published

Original comment by krustev....@gmail.com on 12 Jul 2010 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 1 Apr 2012 at 12:19