Created
November 5, 2015 22:49
-
-
Save tomaslibal/95e4beb0da8af3bd9fad to your computer and use it in GitHub Desktop.
Tangent plane to f(x, y) in GNU Octave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#{ | |
f = x^2 + yx^3 + 2y | |
tangent plane at (-1, 2, f(x, y)) is: | |
4x - 6y - z + 19 | |
#} | |
tx = ty = linspace(-5, 5, 100); | |
[xx, yy] = meshgrid(tx, ty); | |
tz = (xx.^2) + (yy*xx.^3) + (2*yy); | |
meshc(tx, ty, tz); | |
hold on; | |
tangz = 4*xx - 6*yy - 19; | |
meshc(tx, ty, tangz); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment