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
using ApproxFun Dc = Chebyshev(Interval(0,1.)) Df = Fourier(Interval(0,1.)) rx = Fun(t -> cospi(2*t), Df) ry = Fun(t -> sinpi(2*t), Df) twoπx = Fun(x -> 2π*x, Dc) ell = sqrt(differentiate(rx)^2 + differentiate(ry)^2) L = cumsum(ell) println(L(1) == twoπx(1)) # expected value: true println((L - twoπx)(1) ≈ 0) # therefore, expected value: true println((L - twoπx)(1) == L(1)) # expected value: false
Doing this on a chalkboard we would find L := 2πx and so (L - twoπx) ≡ 0. However, the actual results from this example are: true, false, true.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Doing this on a chalkboard we would find L := 2πx and so (L - twoπx) ≡ 0. However, the actual results from this example are: true, false, true.
The text was updated successfully, but these errors were encountered: