<?php function delta_v( $lsp, $g, $m0, $m1 ) { return ($lsp * $g) * log($m0/$m1); } echo delta_v( 300, 9.81, 3500, 1500 ), "\n"; ?>