We have moved to https://dokuwiki.librecad.org/
Lots of content was already moved to the new wiki, but there is still work to do. If you want to contribute, please register a new account at https://dokuwiki.librecad.org/
This wiki will be kept for a while to keep search engine results valid. Moved sites may be deleted here in future.
Difference between revisions of "Math bits"
From LibreCAD wiki
R. van Twisk (Talk | contribs) (Created page with "== modular function in LibreCAD == the standard glibc fmod(x, a) is not convenient here, since we need a modular function work the same way for both positive and negative numb...") |
R. van Twisk (Talk | contribs) (→modular function in LibreCAD) |
||
Line 3: | Line 3: | ||
remainder(x - 0.5*a,a)+0.5*a | remainder(x - 0.5*a,a)+0.5*a | ||
+ | |||
+ | |||
+ | <math> | ||
+ | \operatorname{erfc}(x) = | ||
+ | \frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt = | ||
+ | \frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2n}} | ||
+ | </math> |
Revision as of 16:26, 22 April 2012
modular function in LibreCAD
the standard glibc fmod(x, a) is not convenient here, since we need a modular function work the same way for both positive and negative numbers, instead, we use,
remainder(x - 0.5*a,a)+0.5*a