Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14463
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Parity of EllipticTheta |
| Date | 2013-05-10 04:31 +0000 |
| Message-ID | <kmht7e$hla$1@smc.vnet.net> (permalink) |
| References | <20130509064506.8623F6A10@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Modifying built-in functions is prone to unintended consequences. Recommend something along the lines of etRule = EllipticTheta[1, -x_, q_] :> -EllipticTheta[1, x, q]; Apply the rule each time that you use EllipticTheta EllipticTheta[1, -x, q] /. etRule -EllipticTheta[1, x, q] Or if you are willing to expend the overhead, apply it automatically to all output expressions: $Post = # /. etRule &; EllipticTheta[1, -x, q] -EllipticTheta[1, x, q] Bob Hanlon On Thu, May 9, 2013 at 2:45 AM, Christian <christian.hagendorf@gmail.com>wrote: > Hi, > > I use quite often the functions EllipticTheta[n,x,q] in Mathematica. > Unlike for trigonometric functions Mathematica does not simplify > expressions of the type EllipticTheta[1,-x,q] to -EllipticTheta[1,x,q] > automatically (it does it for Sin[-x]). How do I add such a feature to a > built-in function? > > Thank you in advance, > Ch. > >
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Parity of EllipticTheta Bob Hanlon <hanlonr357@gmail.com> - 2013-05-10 04:31 +0000
csiph-web