Skip to content

Instantly share code, notes, and snippets.

@ceptreee
Created March 25, 2020 12:42
Show Gist options
  • Save ceptreee/8f420c27042ad99ad72a9cea04f81f3d to your computer and use it in GitHub Desktop.
Save ceptreee/8f420c27042ad99ad72a9cea04f81f3d to your computer and use it in GitHub Desktop.
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