Post Reply 
Creating an equation library (Updated 03-FEB-2017)
01-10-2015, 04:34 PM (This post was last modified: 01-10-2015 04:43 PM by Han.)
Post: #5
RE: Creating an equation library (updated)
(01-10-2015 04:12 PM)Giancarlo Wrote:  Hello Han,
thank you so much for working on an equation library. I tried to use it in the EMU. Everything went fine but i receive the "not supported" msgbox for any value assigned to the variables.

Apart from this I would like to understand why you chose to store the equations in a note and not in a simple list. Which advantages you see in doing like this?

Second question, why do you prefer to use fsolve() instead of programming the solve app? just to manage the overall process?

Thanks

Giancarlo

If the system and initial guesses result in anything other than a single solution, then the generic "not supported" message will appear. The current skeleton of an engine does not handle any case beyond the single-solution case (for the moment; that is not the plan for the future, of course). If you simply entered initial guesses without specifying any of the "variables" to be constants, then there would be free variables (since we have more variables than equations), resulting in a system with infinite solutions.

As for why I stored the data in notes -- it's to prevent the erasure of data when one opens the source code of the program. Any variable associated with the program will be reset. Now, we could embed the data into the source code, but as you know, pressing [Shift][Esc] erases the entire program without any prompts. I don't know how many times I have cursed the virtual calculator or the real calculator because I didn't notice that the [Shift] operator was already active and accidentally erased my entire program. Saving it in the notes means we avoid this issue. Since the plan is to also implement an interface to add equations and manage the library, there is no real reason for any user to manually edit the corresponding notes (since it too has the same issue as programs with the [Shift][Esc]).

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Creating an equation library - Han - 01-10-2015, 03:45 AM
RE: Creating an equation library (updated) - Han - 01-10-2015 04:34 PM



User(s) browsing this thread: 2 Guest(s)