LNA version 1.6, I think

Which instruction causes the error?
First I opened the file for example DBisect, and then pressed the Run on the above bar!
And about the erroneous instruction, I should say I didn't understand

Posted 18 June 2006 - 07:29 PM
Posted 18 June 2006 - 09:03 PM
Indeed, you should use CPLua 0.8 (final) instead.CPLua version 0.8 C. Is there any newer one?
Posted 19 June 2006 - 02:36 PM
CPLua 0.8 C should run LNA version 1.6, but you should download the latetest CPLua version 0.8 anyway. To see what LNA version you have installed, run the program DemoAll (located at the directory LNAdrive), then select "About" from the main menu.CPLua version 0.8 C. Is there any newer one?
LNA version 1.6, I think
Posted 19 June 2006 - 07:45 PM
Posted 19 June 2006 - 08:26 PM
Oh, no. You againHi, i?m the RK annoying boy
Hmm, you surrended too early. Normally, I should answer "try again", but, since you have only 3 days for your exams, I think I can help you.I surrender, i need the answer to that problem (example).
Heavily nonlinear differential equations, but LNA should solve them easily. Give me C1, C2, and C3, and make sure that you have wrote the equations correctly.my differentials equations:
--> (dT/dX) = -65 + C1 / ((1-X) * exp (-C2/T))
--> (dt/dX) = 1/ (C3 * (1-X) * exp(-C2/T))
C1,C2,C3 are constants.
initials conditions:
--> X = 0 / T = 613 / t = 0
Your teacher is not a magician. He uses numerical methods to solve them. Don't worry, you will do the same soonMy teacher put the equations, solve them, and gave a table (X,t,T), with differents valors for T and t for each X (independient).
No, definitely no. Analytic solutions like T=f(X) and t=f(X) are impossible in Numerical Analysis. This is true for every computer system. However, you will get a table of (accurate) values.I suposse that a table with results or (better) equations T = f(X) & t=f(X) would be the correct output i need.
Ok, ok. I will help you. Just send me the constants C1, C2, C3, and I will post the CPLua program for solving your problem. Don't tell me you expected such help, do you?Please, explain me pass by pass (go to lua, go to that folder, open that, do that, change that, writte that...) how to get the solution of that equation sistem. Please please, i need it.
dsolve is very poor. For systems of nonlinear equations, use my LNA function called Broyden. It's very powerful. See the example program XBroyden.PD1: Why the Dsolve only solves easy linear equations? I put my equations and the answer (after tons of time) was the same equations.
tsk, tsk, tsk. There is nothing wrong in Laplace transforms. In fact, it's a valuable mathematical tool. I'm afraid that you hate Mathemetics in general. If this is true, shame on youPD2: I hate laplace. It doesn, t fit here, but i hate it.
Posted 19 June 2006 - 08:39 PM
Posted 19 June 2006 - 09:15 PM
Naive question. Yes, it would be better, but cannot be done. I'm not speaking about LNA only: every Numerical Analysis package cannot give a numerical solution for non-numerical constants C1, C2, C3. However, you can get a solution for each particular triplet of constants.I twouldn?t be better a way to solve the problem (the method of imput) without de Cs valor? The problems have different Cs & expressions...
Well, your values are not too accurate, especially for t(0.7). To be precise, the correct values are T(0.7)=589.760481, t(0.7)=15.471522, both accurate to 6 decimal digitsC1 = 1000 * 7,428 * 10^ (-19)
C2 = 22411
C3 = 1,937*10^(15)
in the solution-table, for example, for X=0,7:
T = 591 aprox
t = 13,8 aprox
Posted 19 June 2006 - 09:42 PM
Naive question. Yes, it would be better, but cannot be done. I'm not speaking about LNA only: every Numerical Analysis package cannot give a numerical solution for non-numerical constants C1, C2, C3. However, you can get a solution for each particular triplet of constants.
Well, your values are not too accurate, especially for t(0.7). To be precise, the correct values are T(0.7)=589.760481, t(0.7)=15.471522, both accurate to 6 decimal digits. My RK4Rich function needs about 3 seconds to solve this problem
. I can post a CPLua program that uses LNA to solve the problem, but first, let's talk about the price
. I'll give you the program, but you have to say a nice proverb of your country first. I like to learn foreign proverbs. No proverb, no further help
.
Posted 19 June 2006 - 10:18 PM
Posted 19 June 2006 - 11:06 PM
Don't worry, the program I have posted can be easily modified to solve similar problems.For example, there?s another excercise where the numerator of first equation is multipicated by (C4 - T). I guess it can be solved with de method you?re going to pass me, doesn, t it?
y,xp,yp=RK4Rich(RHS, 0, {620,0.2}, 0.8, true, 1E-6)I think that you will easily realize how it works. Let me know if you have further questions.
I understand the meaning (there is a proverb with the same meaning in my native language). Literally speaking, however, I prefer all birds flying, and I hate hunting and hunters.Spanish proverb.
"M?s vale pajaro en mano que ciento volando".
The translation would be something like "better a catched bird, that a hundred flying"
Posted 19 June 2006 - 11:44 PM
Posted 20 June 2006 - 08:40 AM
That's right; the mathematical expressions are written in the "natural" way, you just have to add "math." before the name of math functions (e.g. math.sin, math.max, math.abs etc)I?ve seen in some problems 10^(....) , T^2 , log(T). I guess the two first ones are write with that symbol (^), and may be the third one written like "math.log(T)" ?
Posted 20 June 2006 - 08:46 AM
Wow, thank you. It's nice to know that I helpedAWESOME, AWESOME & AWESOME.
I don?t have words to describe your work. Simply awesome.
math.exp(thanks)
i?ve tried to run the program with different conditions. Tomorrow i?ll try to modifie ecuations. It seems easy, and your explanation about modifying is perfect.
Indeed, math.log(x) is the logarithmic function in Lua (natural logarithm), and math.log10(x) is... well, I think it's obvious.I?ve seen in some problems 10^(....) , T^2 , log(T). I guess the two first ones are write with that symbol (^), and may be the third one written like "math.log(T)" ?
For a list of mathematical functions, look at section 5.6 of Lua 5.1 reference manual (this manual comes with the CPLua package in html form). You may also need to download the PDF version of Programming in Lua (here is Orwell's topic for CPLua downloads).Tomorrow trying ^^ Any guide to find how to write mathematical expressiones?
Posted 21 June 2006 - 05:37 PM
Posted 21 June 2006 - 05:50 PM
Posted 21 June 2006 - 05:57 PM
Posted 14 August 2006 - 08:02 AM
Posted 24 August 2006 - 10:16 AM
Posted 05 September 2006 - 04:12 PM
Posted 06 September 2006 - 04:09 AM
Posted 06 September 2006 - 10:21 AM
Posted 07 September 2006 - 12:00 PM
LNA is a rather large software, consisting of many CPLua scripts; most of the LNA scripts are really compicated. Don't expect to learn how to use it in seconds; on the other hand, don't expect that it is really very difficult. In any case, you can't learn LNA by reading a short mail.I dunno yet what is LNA and I don't have enought time to read all the topic, then I think I'll down it and try
Could you mail/pm me to explain me fast what is it ?
Posted 09 September 2006 - 08:19 PM
Due to the new CPLua version released these days, I have changed several minor things in LNA, but now I have to take all screenshots for the documentation again. I was planning to release LNA 1.70 this weekend, but I'm afraid that it's not possible; it will take some days, maybe next weekend. Be patient, you won't be dissapointed
Nice!!! I'll wait for it because now I need to use the plot library, LNA is powefull and whit the documentation it's easy to anyone to use it, nice work PAP!!!
Posted 17 September 2006 - 01:12 PM
Posted 20 September 2006 - 06:55 PM
Thanks for your interest about LNA 1.70. My "deadline" for releasing version 1.70 was last weekend, but I didn't make it in time, as always.Download LNA 1.70 ?
Posted 11 November 2006 - 02:04 PM
Posted 11 November 2006 - 05:41 PM
Posted 12 November 2006 - 02:31 PM
Posted 30 December 2006 - 11:06 PM
Posted 31 December 2006 - 06:57 PM
First of all, welcome back, unique33.I wanna a Numerical Methods package for Visual Fortran . I wanna to know that is the IMSL package the best one ?
and which platform provided by the www.vni.com I should use for windows ?
and any more recommandation ?
Posted 31 December 2006 - 10:46 PM
First of all, welcome back, unique33.
Well, I think I can help you. There are several commercial packages, such as NAG and IMSL. In my opinion, there is no "best" package, and you should not pay for them. There is a huge library of Numerical analysis packages in the Netlib repository; they are all free, and they are very-very good, and well tested. Furthermore, look at GAMS, where you will find both free and commercial software categorized, so you will easily find the algorithm you want. Most of the packages in these sites are written in Fortran 77, but, if you want them in Fortran 90 (which is much better than 77), look at this web page, where you will find many packages translated in Fortran 90. I use packages from these sites for several years, and I had never had problems. Most of them are not simply good, they are excellent. Note that many commercial packages are based in free software you can find in the links I have suggested. I don't think that you will need to search elsewhere
.
If you are new in Numerical Analysis, you will have one problem: there are many free packages for the same purposes, which one is preferable? Well, you will probably be satisfied with any of them, but here are some basic suggestions from a "veteran":
Matrix Algebra: The de facto standard for this huge topic is LAPACK. You will find routines for solving systems of equations (linear or not), computing the inverse or the eigenvalues of a matrix, and many many more useful things. Most commercial packages have simply copied this excellent package. It's written in Fortran 77, but you will find a Fortran 95 interface here.
Integration: Use quadpack, a very powerful package. It is able to compute virtually any definite integral accurately.
Ordinary differential equations: Try odepack. I don't think you will ever encounter a single initial- or boundary-value problem which cannot be solved by this package.
There are also many other free packages for solving more specific problems, such as function minimization, nonlinear fitting, etc. If you need any of them, let me know.
Btw, why Visual Fortran? it's not the best choice, definitely. You can find excellent free Fortran compilers and integrated developement environments (IDEs). For a free compiler in both Windows and <{GNULINUX}>, try gfortran or g95. For a free IDE, try Eclipse. If you are using <{GNULINUX}>, there are even more powerful solutions: try the Intel Fortran compiler, which is free for non commercial use, or SunStudio, which includes free C++ and Fortran 95 compilers, together with a very good IDE.
Posted 01 January 2007 - 10:40 AM
Like you said, Mathematica is an interpreter, therefore it is much slower than a Fortran executable (usually 2 or 3 orders of magnitude slower, sometimes even more).If I had this Numerical Packages this term ,I could sell my first programming request for more , but I wrote it using mathematica and I got less . just because it was not Executable and Just because the Mathematica is an Interpreter.
I usually write the mathematical program in Fortran 95. Then, if a graphical user interface (GUI) is needed, I write it in C++, using the QT or the GTK+ toolkits. You can easily mix Fortran and C++ codes in your program. However, implementing the GUI is a headache; it needs several hours of boring programming just for the show, not for the real thing.I choose the "Visual" because my Project should have user Interface . If the user Interface was not nessecery I could use even the Cplua Emulator and The LNA Package for my project.
Keep in mind that the upcoming LNA 1.70 introduces named optional arguments, much like CPLua's packages. LNA 1.60's positional scheme for optional arguments is no longer supported. This means that you will need to do small modifications to all your programs based on LNA 1.60. This change is, of course, annoying for LNA users, but it was really necessary, since most LNA functions have lots of optional arguments.If we had Cplua not just Emulating the Classpad and if it was a real Lua Interpreter It was my first choice for my project . Because I,m know familiar with Lua language and because I ,m useing LNA Package for all of my projects .
The "real" Lua interpreter can be downloaded from this site. However, CPLua is different (and better, IMHO), so your CPLua programs won't work out-of-the-box. Especially LNA is heavily based on CPLua features not found in a normal Lua interpreter. I'm not planning to convert LNA for the real Lua interpreter, because this will be useful for writing Lua programs on the PC, and I will never do that; in my PC, I have several Fortran compilers installed, there is no reason to write a mathematical program in Lua.but Unfortunatly we do not have Real Lua Interpreter .
If there is such a thing let me know.
Posted 01 January 2007 - 08:16 PM
Posted 02 January 2007 - 08:55 AM
Posted 03 January 2007 - 07:47 PM
Me too, I'm really horribly busyDon't worry I'm still here
![]()
I'm just really busy these days, and I don't have time for CPLua at the moment
I also hope that I will be able to release LNA 1.70 before the end of January.I hope I will be able to release CPLua 0.9 before the end of January (and CPLua 1.0 isn't far
)
I used The LNA Package for :
*Internal Combustion Engine Project :
" NASA Program " ( Romberg ,Brent , Broyden Methods used whitin this Project)
*Modern Control Engineering Project :
"Ploting the Respoce , Error to different Signals using Analytic and Numeric Approuch "
*Heating and Cooling the Building Project
AFX_Master and unique33 (the two major funs of LNA) stike again. Thank you, lads. It's really nice to know that my project is useful to youit would benefit the using of LNA for heavy tasks
Bonne annee! (the accent in "annee" is missing; I don't know how to type it in UTF-8)Oh, and happy new year to everyone
Posted 04 January 2007 - 09:06 PM
AFX_Master and unique33 (the two major funs of LNA) stike again. Thank you, lads. It's really nice to know that my project is useful to you
.
Posted 19 January 2007 - 10:23 PM
Posted 20 January 2007 - 11:23 PM
Posted 21 January 2007 - 09:13 PM
0 members, 1 guests, 0 anonymous users