Howell Mann Leak Rate Equation Iterative Solve - I know R, how can I reverse calculate L - Сообщения
Can someone educate me on this?
Any help would be greatly appreciated.
Here's a screenshot:

I know R from our mass spec measurements. I need to go back and find L (the actual leak rate of the device). There is no way to solve for L directly.
The answer for R=3.4*10^-9, L=5.612*10^-8... this is from a lot of work on my TI-85... I'm not 100% sure it's right...
Leak Rate Calculation.sm (6 КиБ) скачан 58 раз(а).
Martin suggests that you try to find L symbolically. Maxima returns L=f(L) which means that the function is nonlinear. Then you will go for a numerical solution. Numerical equations could be tricky. The best is first to try to plot it - to see the possible guess values and to see if there might be more solutions. See the pictures with the Maxima's L=f(L) rearanged equation and with your original (try to avoid so many braces - it is not needed). The second picture is with your original equation. This one is much more problematic for numerical solving. It seems that you need quite good guess value to get the second solution or you are going to get some value around zero, which is another solution (see the pictures). If you try to rearrange the eqaution is some other way, you might get no solution at all.
I do not know if this solution even have sense to you. There is another problem.
Regards,
Radovan
Leak Rate Calculation-1.sm (30 КиБ) скачан 47 раз(а).
Leak_draw.sm (16 КиБ) скачан 45 раз(а).
So it appears there are many ways to get there. This is the first time I've used the program and I'm excited about all the possibilities. I'm going to try them all just to learn some more.
Thanks again!

Also, I tried to install the nonlinear solvers via the extensions manager and it asked for a password. I was able to download the plugin via the SVN, but I'm not sure how to install it that way. Any suggestions?
WroteThe equation has two solutions. Plotting the function f(L) is not very easy in the built-in plot region. Here is an example for how this can be done using the Maxima-Plugin. Not user-friendly either, but full control provided.
I get "failed to load" error... any ideas?
WroteWroteThe equation has two solutions. Plotting the function f(L) is not very easy in the built-in plot region. Here is an example for how this can be done using the Maxima-Plugin. Not user-friendly either, but full control provided.
I get "failed to load" error... any ideas?
Martin's example works perfectly for me. A nice one to see the possibility of Maxima and draw package in SMath. Thank you Martin

I suppose that here is the problem with Maxima plugin. Not loaded correctly or not installed at all.
@rattler1975 - did you install Maxima itself and the Maxima plugin anyway? When you tried to open these files from me and Martin, is there any error about missing plugins.? If you do not know how to use it and you need it - just see the Martin's Handbook. There you will also find how to solve nonlinear equations as well (with or without Maxima).
Regards,
Radovan
WroteWroteWroteThe equation has two solutions. Plotting the function f(L) is not very easy in the built-in plot region. Here is an example for how this can be done using the Maxima-Plugin. Not user-friendly either, but full control provided.
I get "failed to load" error... any ideas?
Martin's example works perfectly for me. Thank you Martin![]()
I suppose that here is the problem with Maxima plugin. Not loaded correctly or not installed at all.
@rattler1975 - did you install Maxima plugin anyway?
Regards,
Radovan
I'm sure you are correct about my installation of Maxima not being correctly installed as I can't get the bisection function to work either. Maxima is install, version 5.31.2. It is installed here: C:\Maxima-5.31.2\
For the Leak_draw.sm file, when I open the Bisection(Eqn,0,10^-6,10^-15) part is red and says, "L-not defined." Same for FindRoot.
Then for Maxima(load(draw)) it says, "failed to load, C:/Maxima-5.31.2/share/maxima/5.31.2/share/draw/draw.lisp - an error. To debut this try: debugmode(true):"
I've run the "maximacontrol(settings)" and it finds the maxima.bat file. It appears to be working. So I am now confused.
By the way, Bisection() and FindRoot() are not part of Maxima plugin. Moreover, I have no idea why do you have the "L-not defined" error here. Actually, L should not be defined here if you want to find the solution for L.
EDIT: Ah yes, I missed one of your post before. It seems that the NonlinearSolvers plugin is not instaleed correctly. NonlinearSolvers from Plugins Galery can be installed when you used this password NonlinearSolvers - see (this post)
WroteHere is the part of the Martin's file. Do you have problems here?
By the way, Bisection() and FindRoot() are not part of Maxima plugin. Moreover, I have no idea why do you have the "L-not defined" error here. Actually, L should not be defined here if you want to find the solution for L.
EDIT: Ah yes, I missed one of your post before. It seems that the NonlinearSolvers plugin is not instaleed correctly. NonlinearSolvers from Plugins Galery can be installed when you used this password NonlinearSolvers - see (this post)
Sweet, adding the nonlinearSolvers plugin got me past the Bisection() and FindRoot() part. At this point I think I have my answer, but the plot is cool and I am going to have to figure that part out. For some reason I'm getting the "failed to load" problem still...

Wrote
For the Leak_draw.sm file, when I open the Bisection(Eqn,0,10^-6,10^-15) part is red and says, "L-not defined." Same for FindRoot.
Then for Maxima(load(draw)) it says, "failed to load, C:/Maxima-5.31.2/share/maxima/5.31.2/share/draw/draw.lisp - an error. To debut this try: debugmode(true):"
I've run the "maximacontrol(settings)" and it finds the maxima.bat file. It appears to be working. So I am now confused.
L not defined: I can just guess. If it happens with Solve, then possibly you use numeric optimization when displaying results. In the context menu (right mouse button) of the math region, you find an item "Optimization". This is ususlly set to "numeric", meaning that SMath Studio tries to display numeric values and eventually units of measurement.
Solve() returns the result as boolean equations "variable = value". This requires setting optimization to "symbolic" or "none" for proper display.
As to the load problem: It is essential that you use Maxima 5.31.1-1 instead of 5.31.2. I have no idea why, but that is the solution.
BTW, if you use the portable SMath distribution (see my signature), then you have most plugins pre-installed and access to a built-in handbook (Help> Reference book) with over 500 interlinked SMath sheets, some of them covering Maxima features.
Currently, I am updating the german pdf handbook (new chapter on SMath with Maxima including graphics examples). It might be useful, even if you do not speak german.
Wrote
BTW, if you use the portable SMath distribution (see my signature), then you have most plugins pre-installed and access to a built-in handbook (Help> Reference book) with over 500 interlinked SMath sheets, some of them covering Maxima features.
Currently, I am updating the german pdf handbook (new chapter on SMath with Maxima including graphics examples). It might be useful, even if you do not speak german.
You can have both SMath versions installed. The official one and Martin's unofficial with plugins included.
WroteWrote
For the Leak_draw.sm file, when I open the Bisection(Eqn,0,10^-6,10^-15) part is red and says, "L-not defined." Same for FindRoot.
Then for Maxima(load(draw)) it says, "failed to load, C:/Maxima-5.31.2/share/maxima/5.31.2/share/draw/draw.lisp - an error. To debut this try: debugmode(true):"
I've run the "maximacontrol(settings)" and it finds the maxima.bat file. It appears to be working. So I am now confused.
L not defined: I can just guess. If it happens with Solve, then possibly you use numeric optimization when displaying results. In the context menu (right mouse button) of the math region, you find an item "Optimization". This is ususlly set to "numeric", meaning that SMath Studio tries to display numeric values and eventually units of measurement.
Solve() returns the result as boolean equations "variable = value". This requires setting optimization to "symbolic" or "none" for proper display.
As to the load problem: It is essential that you use Maxima 5.31.1-1 instead of 5.31.2. I have no idea why, but that is the solution.
BTW, if you use the portable SMath distribution (see my signature), then you have most plugins pre-installed and access to a built-in handbook (Help> Reference book) with over 500 interlinked SMath sheets, some of them covering Maxima features.
Currently, I am updating the german pdf handbook (new chapter on SMath with Maxima including graphics examples). It might be useful, even if you do not speak german.
I downloaded the portable distro, thanks. I also found the 5.31.1-1 version of Maxima and that fixed my problems. The portable version works great as well.
Thanks both mkraska & omorr, you guys really know your stuff.
WroteWrote
For the Leak_draw.sm file, when I open the Bisection(Eqn,0,10^-6,10^-15) part is red and says, "L-not defined." Same for FindRoot.
Then for Maxima(load(draw)) it says, "failed to load, C:/Maxima-5.31.2/share/maxima/5.31.2/share/draw/draw.lisp - an error. To debut this try: debugmode(true):"
I've run the "maximacontrol(settings)" and it finds the maxima.bat file. It appears to be working. So I am now confused.
L not defined: I can just guess. If it happens with Solve, then possibly you use numeric optimization when displaying results. In the context menu (right mouse button) of the math region, you find an item "Optimization". This is ususlly set to "numeric", meaning that SMath Studio tries to display numeric values and eventually units of measurement.
Solve() returns the result as boolean equations "variable = value". This requires setting optimization to "symbolic" or "none" for proper display.
As to the load problem: It is essential that you use Maxima 5.31.1-1 instead of 5.31.2. I have no idea why, but that is the solution.
BTW, if you use the portable SMath distribution (see my signature), then you have most plugins pre-installed and access to a built-in handbook (Help> Reference book) with over 500 interlinked SMath sheets, some of them covering Maxima features.
Currently, I am updating the german pdf handbook (new chapter on SMath with Maxima including graphics examples). It might be useful, even if you do not speak german.
Thank, I got the handbook. I wish I knew German. I'm looking through it now.


By the way, the last value that is being solved for is the actual leak rate of the device.
You can upload here one of your *sm files which freezes up your computer. We could confirm this or not. I do not know what else we can do about it.
Regards,
Radovan
-
Новые сообщения
-
Нет новых сообщений