Skip to content
New issue

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

3d-function-8.tex: convert argument of sin() to degrees. #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simon-budig
Copy link

tikz apparently expectes the argument to sin() in degrees. This is in
strong contrast to the usual conventions in math, where the argument is
expected in radians.

With this example it actually provides a bogus graph - it actually
should approach f(x,y) = 1 for large x and y (since 1/(x^2+y^2) is
small for large x,y; hence sin(1/(x^2+y^2)) can be approximated by
1/(x^2+y^2), resulting in f(x,y) -> 1 for large x,y).

Also I've adjusted the plot range a bit, since this then actually shows
the "interesting" center of the function (x=y=0).

Note that this image is used in Wikipedia ( https://de.wikipedia.org/wiki/Datei:3d-function-8.svg ) and should be updated there as well.

tikz apparently expectes the argument to sin() in degrees. This is in
strong contrast to the usual conventions in math, where the argument is
expected in radians.

With this example it actually provides a bogus graph - it actually
should approach f(x,y) = 1 for large x and y (since 1/(x^2+y^2) is
small for large x,y; hence sin(1/(x^2+y^2)) can be approximated by
1/(x^2+y^2), resulting in f(x,y) -> 1 for large x,y).

Also I've adjusted the plot range a bit, since this then actually shows
the "interesting" center of the function (x=y=0).
@simon-budig
Copy link
Author

also the roughness of the graph is probably due to numerical issues within tex. It really should be a quite smooth surface, making this a very misleading image in the article on Differenzierbarkeit (german wikipedia)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant