Giter VIP home page Giter VIP logo

Comments (1)

sg13041995 avatar sg13041995 commented on June 1, 2024

In my vector field plotter and curl divergence calculator project I have applied a get around to make things work.

In my curl equation where we do (dq/dx - dp/dy) I know that in in q expression any y term will going to be constant and in p expression the x term.

So, if we have any y term under square root in q expression , I replaced that with Q. So, now in the q equation, in the place of sqrt(y) there will be Q. Now, nerdamer can handle it properly and treat it as proper constant.

After the solution, I have converted Q back into sqrt(y).

I did the same for p expression and also for the divergence equation separately.

Things are working fine for me now.

You can check my code as well.
divergence(), curl() functions in mainsketch.js under the provided commit.

https://github.com/sg13041995/2D_Vector_field_plotter_
sg13041995/VectorFieldPlotter@1e5bdb9

You can check out my app as well.
https://vector-field-plotter-e6668.web.app/

Thank you.
I hope this will be somewhat helpful.

from nerdamer.

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.