Giter Club home page Giter Club logo

Comments (8)

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

Agreed, but we please write those equations in the weak PDE form so it's easier to do the translation. To keep things simple, it's just the heat equation $ u_t = \sigma(x)u_{xx} $. There are some heat equation tests already:

https://github.com/JuliaDiffEq/DiffEqOperators.jl/blob/master/test/heat_eqn.jl

but it never hurts to add more.

from diffeqoperators.jl.

jlperla avatar jlperla commented on May 30, 2024

Shouldn't that be $\sigma(x)$ for the variance (i.e. still linear PDE)?

from diffeqoperators.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

Yes thanks. Fixed.

from diffeqoperators.jl.

jlperla avatar jlperla commented on May 30, 2024

Maybe we can put in comments in the tests that mention both the PDE and stochastic process forms. Economists/finance people will find it much easier to think in terms of stochastic processes than the resulting PDEs. Also, don't forget that those are frequently NOT the PDEs that would come out of the discretized operators (e.g. backwards equations are different and the variational-inequalities that come out of stopping problems are also very different from that).

from diffeqoperators.jl.

jlperla avatar jlperla commented on May 30, 2024

Note, given the grid x_grid to find the discretized $\sigma(x) d W_t$ operator, you should do something like sigma(x_grid)' * DerivativeOperator(...) * sigma(x_grid) where the parameters for the derivative operator are the same as the one without the changing variance.

from diffeqoperators.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

Correction, you need the u in there to apply the operator.

sigma(x_grid)' * DerivativeOperator(...) * u * sigma(x_grid)

from diffeqoperators.jl.

jlperla avatar jlperla commented on May 30, 2024

Note: only test the absorbing barrier with a value of 0 for now.

from diffeqoperators.jl.

jlperla avatar jlperla commented on May 30, 2024

Again, come back to this after #51 is complete.

from diffeqoperators.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.