We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fejer nodes/weights seem incorrect for low discretization (nan with clenshaw/n=1, null wieghts with fejer2/n=2), but ok from n>=3
import openturns as ot for n in [1, 2, 3, 7]: for rule in [ot.FejerAlgorithm.FEJERTYPE1, ot.FejerAlgorithm.FEJERTYPE2, ot.FejerAlgorithm.CLENSHAWCURTIS]: algo = ot.FejerAlgorithm([n], rule) print(f"n={n} rule={rule}", algo.getNodes().asPoint(), algo.getWeights()) n=1 rule=0 [6.12323e-17] [2] n=1 rule=1 [6.12323e-17] [0] n=1 rule=2 [-nan] [inf] n=2 rule=0 [0.707107,-0.707107] [1,1] n=2 rule=1 [0.5,-0.5] [0,0] n=2 rule=2 [1,-1] [1,1] n=3 rule=0 [0.866025,6.12323e-17,-0.866025] [0.444444,1.11111,0.444444] n=3 rule=1 [0.707107,6.12323e-17,-0.707107] [0.5,1,0.5] n=3 rule=2 [1,6.12323e-17,-1] [0.333333,1.33333,0.333333] n=7 rule=0 [0.974928,0.781831,0.433884,6.12323e-17,-0.433884,-0.781831,-0.974928] [0.0867162,0.287831,0.398242,0.454422,0.398242,0.287831,0.0867162] n=7 rule=1 [0.92388,0.707107,0.382683,6.12323e-17,-0.382683,-0.707107,-0.92388] [0.167504,0.283333,0.332496,0.433333,0.332496,0.283333,0.167504] n=7 rule=2 [1,0.866025,0.5,6.12323e-17,-0.5,-0.866025,-1] [0.0285714,0.253968,0.457143,0.520635,0.457143,0.253968,0.0285714]
### Version master ### Operating System all ### Installation media from source ### Additional Context _No response_
The text was updated successfully, but these errors were encountered:
FejerAlgorithm: Fix Fejer2 weights
f6e4ba5
Closes openturns#2842
2375c46
FejerAlgorithm: Fix weights/nodes
c15492a
da41489
jschueller
No branches or pull requests
What happened?
fejer nodes/weights seem incorrect for low discretization (nan with clenshaw/n=1, null wieghts with fejer2/n=2), but ok from n>=3
How to reproduce the issue?
The text was updated successfully, but these errors were encountered: