repo.or.cz
/
maxima.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rename *ll* and *ul* to ll and ul in in-interval
[maxima.git]
/
share
/
contrib
/
fresnel
/
fresnelFG.mac
blob
3cddcbdc9759020542c91179f7b4fff4601863ec
1
fresnelFG(z):=block([fc,fs,cz2,sz2,zp2,FLOAT2BF:true],
2
z:bfloat(z),
3
zp2:bfloat(%pi)*z*z/2.0b0,
4
cz2:cos(zp2),
5
sz2:sin(zp2),
6
fc:fresnelC(z),
7
fs:fresnelS(z),
8
[z,
9
((2 * fc * sz2 - sz2 - 2 * cz2 * fs + cz2)/(2 * sz2^2 + 2 * cz2^2)),
10
(( - 2 * fs * sz2 + sz2 - 2 * cz2 * fc + cz2)/(2 * sz2^2 + 2 * cz2^2))]
11
)$