Hi,
I was wondering how you would create a very long fraction in PHP, looking like this:
<?php
echo 4 * ( 1 - (1/3) + (1/5) - (1/7) + (1/9) - (1/11) + (1/13) - (1/15) ... ) ;
?>
And so on...
That is,
4 times ( 1 minus one third, plus one fifth, minus one seventh ... )
switching between plus and minus all the time.
Is this possible?
If so, how?
I'm using it for a math assignment in school.
Thank you very much in advance.