i'm trying to write the equation dB=log_10(P_2/P_1)(adsbygoogle = window.adsbygoogle || []).push({});

I just need help writing this equation into Fortran.

I know for exponents I use **, but what about subscripts?

Also, my inital thought for a fraction is /. Is this correct?

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

Dismiss Notice

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!

# Subscripts and Fractions in Fortran 95

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