Complex_division_bybuf   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/math.xtm

Implementation

(bind-func Complex_division_bybuf
  (lambda (a:Complexd* b:Complexd* c:Complexd* len)
    (let ((i 0) (j 0.0) (k 0.0) (l 0.0))
      (dotimes (i len)
        (set! j (+ (* (tref (pref-ptr a i) 0)
                      (tref (pref-ptr b i) 0))
                   (* (tref (pref-ptr a i) 1)
                      (tref (pref-ptr b i) 1))))
        (set! k (+ (* (tref (pref-ptr b i) 0)
                      (tref (pref-ptr b i) 0))
                   (* (tref (pref-ptr b i) 1)
                      (tref (pref-ptr b i) 1))))
        (set! l (- (* (tref (pref-ptr a i) 1)
                      (tref (pref-ptr b i) 0))
                   (* (tref (pref-ptr a i) 0)
                      (tref (pref-ptr b i) 1))))
        (tset! (pref-ptr c i) 0 (/ j k))
        (tset! (pref-ptr c i) 1 (/ l k)))
      void)))


Back to Index

Similar Entries

  • Complex_addition_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_addition_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_conj    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_conj    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_division_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_mag    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_mag    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_multiplication_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_multiplication_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_multiplication_polar    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • Complex_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_phase2    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • Complex_subtraction_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_subtraction_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • GSL_SET_COMPLEX    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • complex?    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • impc:ir:complex-type?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:complex-type?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:complex-unify    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_division    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm