From: Mayneord on
Please help me with the following equation:

1. L + w / log[1 + sqroot(2)] + log (L+w/L)

2. File = Erf [ ( x - s ) / sq.root (2)]


How do i write this in C++ ? especially the error function ??

thanks inadvance

your help is sincerely appreciated


May
From: osmium on
"Mayneord" writes:

> Please help me with the following equation:
>
> 1. L + w / log[1 + sqroot(2)] + log (L+w/L)
>
> 2. File = Erf [ ( x - s ) / sq.root (2)]
>
>
> How do i write this in C++ ? especially the error function ??

See the functions in <cmath> for part 1.

Then, for part 2, see if this helps, scan down to the Taylor expansion.

http://en.wikipedia.org/wiki/Error_function



 | 
Pages: 1
Prev: Calculate Running Time
Next: typedef question