how to write this in PHP???
Moderator: General Moderators
how to write this in PHP???
i dont know how to write this in PHP..
and i dont know how to write this here because its a mathematical equation....with power,negative and exponen...
pls help..how to write this here???
and i dont know how to write this here because its a mathematical equation....with power,negative and exponen...
pls help..how to write this here???
- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
Code: Select all
<?php
$i = 1;
$t = 2;
echo exp(-$i * $t);
?>if pow(2,8) means a i want to raise the two with the power 8..
how to raise the exponen with the power -i*t??
is this true??
how to raise the exponen with the power -i*t??
is this true??
Code: Select all
pow(exp,-$MTTF*$bilInspection)- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
scorphus@Kilauea:/tmp$ cat tmp.php
scorphus@Kilauea:/tmp$ php tmp.php
scorphus@Kilauea:/tmp$
Code: Select all
<?php
$i = 1;
$t = 2;
echo exp(-$i * $t) . "\n";
echo exp(0) . "\n";
echo exp(1) . "\n";
echo exp(2) . "\n";
?>Code: Select all
0.135335283237
1
2.71828182846
7.38905609893