Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been trying to write a code in C to solve Beer-Lambert law for Atmospheric Radiation . I need C code for a small differential equation (for my reference) with lower and upper limits and integration

Thanks in Advance
Posted
Comments
Sergey Alexandrovich Kryukov 17-Jul-14 2:22am    
Numeric or algebraic (symbolic) solution?
—SA
Member 10952154 17-Jul-14 3:07am    
Algebraic sol
Richard MacCutchan 17-Jul-14 5:39am    
If you know the mathematics then it is just a matter ofwriting all the steps required to solve the equation in pseudo code, then converting that into C.
Richard MacCutchan 17-Jul-14 6:17am    
What is that supposed to mean? If you want help with your problem then a) at least show you have made some effort, and b) provide proper details, rather than terse meaningless responses.

1 solution

You must study Numerical Analyis first. Not the entire thing, just the differential equaions part. You can narrow it down further because solving ODE and PDE have different approaches.

I have previously used Euler and Runge Kutta methods (for ODE). These are numerical techniques. It's impossible to suggest anything unless you say what kind of equation, it's degree and order.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900