In MATLAB I wrote a solver program that relies upon a separate, user defined function.
It begins with the line
function [tdata,udata] = solver(dt,tmax,T,u0,dx,N,epsilon)
O And goes on to define what I want to do with these parameters.
How would I do something similar in python?
CodePudding user response:
Def solver(dt,tmax,T,u0,dx,N,epsilon):
…
Return(tdata, udata)
CodePudding user response:
This community is so unhelpful. Literally asked how to translate this from MATLAB to python since I'm new to the language.