473,378 Members | 1,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Solving Differential Equations with C

3
Hallo guys, I have to solve a system of Differential equations:

http://picasaweb.google.de/sdufoo/EcuacionesDiferenciales02/photo#5228386949051570594

these are the equations of an induction motor, I have to program it in C because I will use a DSP (ADSP21062) in order to control the torque of the motor. I've read a little bit, and I think that I have to solve the equations using numerical methods, but there a lot of them, and It could be helpful if someone could tell me which method would be better for this case, and if there are some examples to see how do I have to program it.

Thanks
Jul 31 '08 #1
4 4839
mac11
256 100+
I'm not sure if I understand...
You want your dsp to compute these equations on the fly in order to control the motor?

If so, I don't think it's a good idea to put complex math into a small processor unless you can't get around it. A better idea might be to compute whatever values you need ahead of time and then store them into a table - then just look up a value when you need it.

Is that possible with your application?
Jul 31 '08 #2
arnaudk
424 256MB
You have a system of coupled first-order linear inhomogeneous ordinary differential equations. GSL has a library to solve those numerically. Whether you can solve them in real-time in your embedded system depends on your processor; the problem amounts to inverting a 4x4 matrix in the corresponding eigenvalue problem which shouldn't be too tough in principle.
Jul 31 '08 #3
sdufoo
3
Thanks for the ideas, i think that the look-up table won't be so optimal, but i will review the other solution and then I post again the results. Thanks guys!
Aug 1 '08 #4
sdufoo
3
You have a system of coupled first-order linear inhomogeneous ordinary differential equations. GSL has a library to solve those numerically. Whether you can solve them in real-time in your embedded system depends on your processor; the problem amounts to inverting a 4x4 matrix in the corresponding eigenvalue problem which shouldn't be too tough in principle.
Hello, I have an update, I just can use Eulers Method to solve this equations, i've read about Eulers Method, and it isn´t so difficult. Have you a page where I can see an example where they solve the with Eulers method the type of equations that I use? thanks man!
Aug 6 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: greg.smith | last post by:
Hi there, I've been trying to solve this different via numerical methods(C programming) and it's driving me crazy.... I can't post my code because it's simply one big mess and doesn't work. ...
7
by: 116Rohan | last post by:
I have been trying to figure out how to solve uneqaulity problems I have two equations which I am trying to figure out What values of n will make 8n^2 < 64 * n * Lg n What I am trying to find...
8
by: vj | last post by:
Hi all, I want to solve the two equations u*tan(u)=w and u^2 + w^2=V^2, where V is a known constant, and u and w are the two unknowns to be determined. Please can someone suggest me how to...
4
by: Thomas | last post by:
Hi, I've to solve a system of linear equations and inequations in C++. Are there (free) librarys for that topic? Regards, Thomas
6
by: omesh | last post by:
hi guys.. i got a problem.. could anyone help me write a program.. the program is as follows:- 2. Solving systems of Linear equations using Iteration: You are required to write a C++ program...
3
by: Zayde | last post by:
Is there a package of functions to do numerical integration in PHP ?
1
by: HypeBeast McStreetwear | last post by:
Hello everyone. I got a assignment that states. The set of linear equations a11X1 = a12X2 = c1 a21X1 = a22X2 = c2 May be solved using Cramer’s rule: X1 = c1a22 – c2a12 a11a22 –...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.