Opened 12 years ago

Closed 8 years ago

#10074 closed enhancement (fixed)

special values of lesser hyperbolic functions

Reported by: kcrisman Owned by: burcin
Priority: minor Milestone: sage-6.4
Component: symbolics Keywords: sech, coth, csch
Cc: Merged in:
Authors: Ralf Stephan Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: e064ff3 (Commits, GitHub, GitLab) Commit: e064ff3a8cc50f28ccdac848c4eab688875d26e8
Dependencies: Stopgaps:

Status badges

Description

Even though Maxima can evaluate sech(0), Sage does this:

sage: cosh(0)
1
sage: sech(0)
sech(0)

It seems reasonable to fix this. Part of this is probably that sech is not a !GiNaC function.

Change History (14)

comment:1 Changed 11 years ago by benjaminfjones

Is there a way of initializing a Ginac / Pynac function using a symbolic expression? It would be nice to be able to initialize sech by calling simply:

GinacExpression.__init__(self, '1/cosh', ... 

And the result would behave just like defining sech(z) = 1/cosh(z) in Sage. Then we'd get (as in sage-5.0.beta9):

sage: sech(z) = 1/cosh(z)
sage: sech(0)
1

Maybe this is naive...

comment:2 Changed 9 years ago by jdemeyer

Milestone: sage-5.11sage-5.12

comment:3 Changed 9 years ago by vbraun_spam

Milestone: sage-6.1sage-6.2

comment:4 Changed 9 years ago by vbraun_spam

Milestone: sage-6.2sage-6.3

comment:5 Changed 8 years ago by vbraun_spam

Milestone: sage-6.3sage-6.4

comment:6 Changed 8 years ago by rws

Summary: Improve less-used hyperbolic functionsspecial values of lesser hyperbolic functions

comment:7 Changed 8 years ago by rws

Branch: u/rws/improve_less_used_hyperbolic_functions

comment:8 Changed 8 years ago by rws

Authors: Ralf Stephan
Commit: b1833cb5e3f2e204e4ec966e404a42835a82f418
Status: newneeds_review

New commits:

b1833cb10074: special values of coth, sech, csch

comment:9 Changed 8 years ago by chapoton

Status: needs_reviewneeds_work

badly formatted doc

comment:10 Changed 8 years ago by git

Commit: b1833cb5e3f2e204e4ec966e404a42835a82f418507dc57324d5cdada41940aa9d61120c0846f95a

Branch pushed to git repo; I updated commit sha1. New commits:

507dc5710074: cosmetics

comment:11 Changed 8 years ago by rws

Status: needs_workneeds_review

comment:12 Changed 8 years ago by chapoton

Branch: u/rws/improve_less_used_hyperbolic_functionspublic/ticket/10074
Commit: 507dc57324d5cdada41940aa9d61120c0846f95ae064ff3a8cc50f28ccdac848c4eab688875d26e8
Reviewers: Frédéric Chapoton

Looks good to me, if you agree with my small changes, you can set that to pos.rev.


New commits:

16323a3Merge branch 'u/rws/improve_less_used_hyperbolic_functions' into 6.5.b6
e064ff3trac #10074 review commit

comment:13 Changed 8 years ago by rws

Status: needs_reviewpositive_review

OK. Thanks.

comment:14 Changed 8 years ago by vbraun

Branch: public/ticket/10074e064ff3a8cc50f28ccdac848c4eab688875d26e8
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.