Skip to content

Commit b1ef0f3

Browse files
MMMMMMMZSSwiniarskicaupolicandiaz
authored
[Term Entry] PHP Math Functions exp() #2269 (#2493)
* added exp.md in content\php\concepts\math-functions\terms\exp * Changed E to e and removed (E^x^) Co-authored-by: SSwiniarski <[email protected]> * Removed Random Whitespaces in the metadata * changed instances of E in exp.md to _e_ and changed the way that exp() is displayed * removed random whitespaces in the pseudo syntax * added a sentence to introduce the codebyte * Update exp.md * review edits --------- Co-authored-by: SSwiniarski <[email protected]> Co-authored-by: Caupolican Diaz <[email protected]>
1 parent e9ca4fd commit b1ef0f3

File tree

1 file changed

+38
-0
lines changed
  • content/php/concepts/math-functions/terms/exp

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
Title: 'exp()'
3+
Description: 'Returns e raised to the power of x.'
4+
Subjects:
5+
- 'Computer Science'
6+
- 'Web Design'
7+
- 'Web Development'
8+
Tags:
9+
- 'Strings'
10+
- 'Functions'
11+
CatalogContent:
12+
- 'learn-php'
13+
- 'paths/computer-science'
14+
---
15+
16+
The **`exp()`** function returns _e_ raised to the power of x.
17+
18+
## Syntax
19+
20+
```pseudo
21+
exp($x)
22+
```
23+
24+
- `$x`: Specifies the exponent that _e_ will be raised to.
25+
26+
## Codebyte Example
27+
28+
The following codebyte illustrates the use of the `exp()` function with a variety of arguments:
29+
30+
```codebyte/php
31+
<?php
32+
echo (exp(0)."\n");
33+
echo (exp(1). "\n");
34+
echo (exp(2). "\n");
35+
echo (exp(4.8). "\n");
36+
echo (exp(10). "\n");
37+
?>
38+
```

0 commit comments

Comments
 (0)