Created
July 12, 2016 08:22
-
-
Save tenomoto/0c2d1dc43da4a2503ccd034a5608fe6f to your computer and use it in GitHub Desktop.
Calculate the critical value for the non dimensional wave number in the Eady problem
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
#!/usr/bin/env octave -qf | |
function y = f(x) | |
y = coth(0.5*x) - 0.5*x; | |
endfunction | |
format long | |
fsolve("f", 1.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment