Skip to content

this code uses Finite Difference Method to solve the function: sin(x) * exp(-t)

License

Notifications You must be signed in to change notification settings

vaishnu7/a-simple-example-of-FDM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Finite Difference Method

The function we used here is: CodeCogsEqn (2)

Highlights:

  • Double Derivation is performed on the function f(x,t).
  • The PDE formed is CodeCogsEqn (1)
  • Initial Conditions taken as : f(x,0) = sin(x)
  • Boundary Conditions taken as: f(0,t) = 0 and f(L,t) = sin(L)*exp(-t)

The Graph:

graph

Note:

The code provided here contains a comparison between the original function and the function we made using PDE to check if both the graph coincides

About

this code uses Finite Difference Method to solve the function: sin(x) * exp(-t)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages