CsubR   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm

Implementation

(bind-func CsubR
  (lambda (num1:gsl_complex* num2:double)
    (let ((n1 (bitcast num1 |2,double|*))
    (num3:gsl_complex* (alloc))
    (n3 (bitcast num3 |2,double|*)))
      (aset! n3 0 (- (aref n1 0) num2))
      (aset! n3 1 (- (aref n1 1) num2))
      num3)))


Back to Index