how to define a constant like Pi in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg63936] how to define a constant like Pi in Mathematica
- From: "John Smith" <doesnotexist at dread13.news.tele.dk>
- Date: Mon, 23 Jan 2006 04:11:51 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I would like to define a constant in mathematica for example c=1.2345 in such a way that it behaves exactly like Pi or E. That is when I type c then I get the output c and not 1.2345. If I do integration[Exp[-c*x^2],{x,-oo,oo}] then I should get sqrt[Pi/c] and not If[c<0...]
- Follow-Ups:
- Re: how to define a constant like Pi in Mathematica
- From: Zhengji Li <zhengji.li@gmail.com>
- Re: how to define a constant like Pi in Mathematica