|
|
|
|
|
by sandGorgon
3695 days ago
|
|
Just one question - and that's the part that you are skipping over. Are you building your own symbolic solver ? If you are "pulling" equations ... Are you also solving them or are you displaying equations? I'm getting the feeling that you have built a document and reference management system for CAD users (kind of like latex) rather than a CAD software that solves the equations, right? |
|
Each equation can be thought of as a line of code. Each web page is both a document like Word and a program. The user adds an equation to the document via a gui and then double clicks on it to edit it. You can enter something like a=1+sin(0.5)/1 and then hit enter. My code parses this text out, finds the "sin" function, solves it, then solves the remaining equation, and then displays it as you would expect to see it on a formal document and gives that equation the name "a". Users can then reference the result of this using the name "a" in a later equation. When an equation changes, its dependents update as well.
I have a number of built in functions. There is everything from an FFT to a differential equation solver to an integral. It also tracks units like "mm" and "in" and does all the necessary math for this.
The code to do this in javascript was as painful and fun as it sounds. With the fellowship time/money I will build a python server side to solve large datasets and start the process of placing a CAD layer on top of it.