Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
error function

Subject: error function

From: aasim Azooz

Date: 24 Jan, 2010 22:57:02

Message: 1 of 2

Hello
Can some one on the tell me by what accuracy does matlab calculates the error function "erf(x)" . I have fitted the results for error functions to a "tanh(ax)" function and got very nice fit. they look almost the same. The value of the parameter a obtained is 1.2015. This means that erf(x)=tanh(1.2015x). is this just a coincidence or does it have some mathematical bases. Thanks.
Aasim Azooz

Subject: error function

From: John D'Errico

Date: 24 Jan, 2010 23:08:02

Message: 2 of 2

"aasim Azooz" <aasimazooz1@yahoo.com> wrote in message <hjij7u$5dn$1@fred.mathworks.com>...
> Hello
> Can some one on the tell me by what accuracy does matlab calculates the error function "erf(x)" . I have fitted the results for error functions to a "tanh(ax)" function and got very nice fit. they look almost the same. The value of the parameter a obtained is 1.2015. This means that erf(x)=tanh(1.2015x). is this just a coincidence or does it have some mathematical bases. Thanks.
> Aasim Azooz

They both have the same basic shape. Just
coincidence. No basis at all in mathematics.

John

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us