In the elemnum.input tests, for SBCL, the only
2 unexpected failures are:

3: ERROR: (atan(%i::Complex DFLOAT))
Output1: 0.7853981633974483 + 177.09910463306602 %i

4: ERROR: (atan(-%i::Complex DFLOAT))
Output1: - 0.7853981633974483 - 177.09910463306602 %i

They are expected to fail, but they return a result.

In Comon Lisp the Language, it's not specified how to
implement 'atan':

https://www.cs.cmu.edu/Groups/AI/util/html/cltl/clm/node128.html

So we should do the check in FriCAS instead of depending
on the underlying lisp implementation.

Currently:
            atan  x == ctos ATAN(stoc x)$Lisp

We should do it in Lisp:

(defun atan_df (x)
    (if (= x #C(0.0 1.0))
        (error "atan(1.0*%i) is not defined!")
        (|c_to_s| (atan (|s_to_c| x)))))

Off topic a little: maybe we should use the Lisp
representation for Complex DFLOAT directly.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to