Hi:

(a) I'm not sure if this is a bug or something missing, but it seems
to me it should be easy to plot y=arccsc(x) in SAGE, since it
is a basic function of trigonometry and calculus. Two problems:
(1) it seems arccsc is not defined,
(2) after defining it, it does not seem easy to plot it:

sage: acsc = lambda x: CDF(x,0).arccsc()
sage: acsc(1.1)
1.14109666064
sage: acsc(1.9)
0.554261834452
sage: P = plot(RR(acsc(x)),1,2)
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/home/wdj/sagestuff/sage-2.8.7.rc1/<ipython console> in <module>()

/home/wdj/sagestuff/sage-2.8.7.rc1/<ipython console> in <lambda>(x)

/home/wdj/sagestuff/sage-2.8.7.rc1/complex_double.pyx in
sage.rings.complex_double.ComplexDoubleField_class.__call__()

/home/wdj/sagestuff/sage-2.8.7.rc1/complex_double.pyx in
sage.rings.complex_double.ComplexDoubleElement.__init__()

<type 'exceptions.TypeError'>: a float is required

(b) In fact, what I'd like to do is plot in SAGE what calculus teachers draw
frequently on the board: not just one branch of arccsc but rather
several of them: ie, the plot of y=csc(x) over say -2\pi to 2*\pi,
flipped about the 45^o line. Is this easy to do?

- David Joyner

Can anyone see what I'm doing wrong here?

- David Joyner

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to