hi im just start learning fortran and i have aproblem with my homework:(adsbygoogle = window.adsbygoogle || []).push({});

we have to write a code to solve system of equations by writing them in matricies (tridiagonal matrix) form

the first step is to enter the coefficients of the variables (r1,r2,r3,...) and then the answers to the equations (b1,b2,b3,...) by using array , ok i can write it but the problem is how can i print the equations in the form:

r1X1+r2X2=b1

r1X1+r2X2+r3X3=b2

i cant do this step !!!!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fortran question

**Physics Forums | Science Articles, Homework Help, Discussion**