need help in entering the values of trigonometric functions

36 views
Skip to first unread message

Prof K.A.Venkatesh

unread,
Jun 24, 2019, 2:58:29 AM6/24/19
to sage-support
1.  how to enter cot(pi*x)?

Simon King

unread,
Jun 24, 2019, 3:50:19 AM6/24/19
to sage-s...@googlegroups.com
Hi,

On 2019-06-24, Prof K.A.Venkatesh <prof.kav...@gmail.com> wrote:
> 1. how to enter cot(pi*x)?

Did you try to type cot(pi*x) after the Sage prompt?

The result is indeed cot(pi*x) as a symbolic expression. It can be
evaluated by inserting special values for x (which is a pre-defined
symbolic variable).

A nice possibility (assuming that you do want to create a symbolic
function based on cotangent function) is this:
sage: f(x) = cot(pi*x)
sage: f
x |--> cot(pi*x)
sage: f(3)
Infinity
sage: f(3/2)
0
sage: f(3/4)
-1

Hope that I understood and answered your question.
Best regards,
Simon


Prof K.A.Venkatesh

unread,
Jun 24, 2019, 6:24:42 AM6/24/19
to sage-s...@googlegroups.com
Dear Simon
Thank you. I did the same, but it states that an error. Note that I am using  sage cell .
Dr. K A. Venkatesh
Professor of Math and Computer Science,
Myanmar Institute of Information Technology
73rd Street, Ngu Shwe War, Chanmyathazi Township, 
Mandalay, Myanmar



--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/Qnf-Q4Ng7hw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/qepvbg%2464ol%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

slelievre

unread,
Jun 24, 2019, 6:36:40 AM6/24/19
to sage-support
Reply all
Reply to author
Forward
0 new messages