Created
March 25, 2020 12:42
-
-
Save ceptreee/5164522f71fd2f96d6ef81c35089b12a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function Problems(n) | |
| ############################################################## | |
| if n == "1" | |
| Lt = 1.0 | |
| K = (t,s) -> 2.0 * cos( t - s ) | |
| g = (t) -> exp(t) | |
| y_exc = (t) -> exp(t) * ( 1.0 + t )^2 | |
| ############################################################## | |
| elseif n == "2" | |
| Lt = 3.0 | |
| K = (t,s) -> (t-s) | |
| g = (t) -> 1.0 - t - t^2/2.0 | |
| y_exc = (t) -> 1.0 - sinh(t) | |
| end | |
| return Lt,K,g,y_exc | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment