Fortune Telling Collection - Horoscope - On rk4 of fortran
On rk4 of fortran
Your problem is that k is undefined, so it is considered as an integer, and dydx in diff_equation is undefined, so it is considered as a floating point number. Inconsistent types lead to strange numbers.
I strongly recommend that you add:
Implicit none
Then for each array of each program, the variable declares its type.
Don't use dimensions, and forget the word forever.
An integer array is defined as follows:
Integer:: i(n)
Floating-point number groups are defined as follows:
Real number:: r(n)
- Previous article:The twelve constellations give boys nice names _ The twelve constellations give boys nice names.
- Next article:What is that cat doing?
- Related articles
- You can't lack the constellation of love and water.
- Criteria for finding a boyfriend for girls of the twelve constellations
- The satyr weighs 2022.
- Pisces pairing constellation
- ICBC Constellation _ ICBC Constellation Credit Card
- You can laugh until you are heartless, or you can cry until your heart breaks. What constellations are you talking about?
- Who knows the name of the beautiful woman below? Wait for Nie.
- The auspicious number of Aquarius
- Constellation girls who don't worship money _ What is a constellation girl who doesn't worship money?
- What is Ma Chang's occupation?