Message Boards Message Boards

0
|
931 Views
|
7 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Is there a way to show original function of Erf function?

Posted 3 months ago

Hello,

For example, Erf[1/2] will outputs enter image description here

How to make the result to be the original format, such as enter image description here

And another question is that why Integrate[E^(-t^2), {t, 0, 1/2}] wouldn't be a number? I think this formula can be integrated.

POSTED BY: Zhenyu Zeng
7 Replies

From the documentation:

NumberQ[expr] returns False unless expr is manifestly a number (i.e. has head Complex, Integer, Rational, or Real)

It is meant as very fast test that does not waste time to go deep. Its name is unfortunate, because for example NumberQ[Pi] gives False.

NumericQ instead takes its time to investigate, and NumericQ[Pi] gives True.

I am not an expert, but I doubt that there is a simpler way to write Erf[1/2].

POSTED BY: Gianluca Gorni

I tried FunctionExpand, but it does not do what you want:

Erf[1/2] // FunctionExpand

You can use a replacement rule instead:

erfRule = 
  Erf[x_] :> 2/Sqrt[\[Pi]] Inactive[Integrate][E^(-t^2), {t, 0, x}];
Erf[1/2] /. erfRule

The expression Integrate[E^(-t^2), {t, 0, 1/2}] is a number, of course. To check it you can use NumericQ, not NumberQ:

NumberQ[Integrate[E^(-t^2), {t, 0, 1/2}]]
NumericQ[Integrate[E^(-t^2), {t, 0, 1/2}]]
POSTED BY: Gianluca Gorni
Posted 3 months ago

Thanks.

  1. What is the difference between NumberQ and NumericQ?
  2. Is there a way to simplify the Erf[1/2] without Integral symbol?

Regards,

POSTED BY: Zhenyu Zeng

(2.) Is there a way to simplify the Erf[1/2] without Integral symbol?

POSTED BY: Marvin Ray Burns
Posted 3 months ago

Thanks.

From your post, there is a result for Erf[1/2], but is there a way to display it with fraction without Integral symbol?

Regards

POSTED BY: Zhenyu Zeng

When there is an integral, often there is a series. Here is one way Mathematica derives what is found at

https://mathworld.wolfram.com/Erf.html

POSTED BY: Marvin Ray Burns
Posted 3 months ago

Thanks. It is a good way. Maybe there is no way to show the result with fraction.

POSTED BY: Zhenyu Zeng
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract