Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14463 > unrolled thread

Re: Parity of EllipticTheta

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-05-10 04:31 +0000
Last post2013-05-10 04:31 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Parity of EllipticTheta Bob Hanlon <hanlonr357@gmail.com> - 2013-05-10 04:31 +0000

#14463 — Re: Parity of EllipticTheta

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-05-10 04:31 +0000
SubjectRe: Parity of EllipticTheta
Message-ID<kmht7e$hla$1@smc.vnet.net>
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.
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web