File: math.html

package info (click to toggle)
erlang-doc-html 1%3A11.b.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 23,284 kB
  • ctags: 10,724
  • sloc: erlang: 505; ansic: 323; makefile: 62; perl: 61; sh: 45
file content (153 lines) | stat: -rw-r--r-- 3,740 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.3 -->
<HTML>
<HEAD>
  <TITLE>math</TITLE>
  <SCRIPT type="text/javascript" src="../../../../doc/erlresolvelinks.js">
</SCRIPT>
  <STYLE TYPE="text/css">
<!--
    .REFBODY     { margin-left: 13mm }
    .REFTYPES    { margin-left: 8mm }
-->
  </STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
      ALINK="#FF0000">
<!-- refpage -->
<CENTER>
<A HREF="http://www.erlang.se">
  <IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif">
</A>
<H1>math</H1>
</CENTER>

<H3>MODULE</H3>
<DIV CLASS=REFBODY>
math
</DIV>

<H3>MODULE SUMMARY</H3>
<DIV CLASS=REFBODY>
Mathematical Functions
</DIV>

<H3>DESCRIPTION</H3>
<DIV CLASS=REFBODY>

<P>This module provides an interface to a number of mathematical
functions.
<P>
<TABLE CELLPADDING=4>
  <TR>
    <TD VALIGN=TOP><IMG ALT="Note!" SRC="note.gif"></TD>
    <TD>

<P>Not all functions are implemented on all platforms. In particular,
the <CODE>erf/1</CODE> and <CODE>erfc/1</CODE> functions are not implemented on Windows.    </TD>
  </TR>
</TABLE>

</DIV>

<H3>EXPORTS</H3>

<P><A NAME="pi/0"><STRONG><CODE>pi() -&#62; float()</CODE></STRONG></A><BR>

<DIV CLASS=REFBODY>

<P>A useful number.

</DIV>

<P><A NAME="sin/1"><STRONG><CODE>sin(X)</CODE></STRONG></A><BR>
<A NAME="cos/1"><STRONG><CODE>cos(X)</CODE></STRONG></A><BR>
<A NAME="tan/1"><STRONG><CODE>tan(X)</CODE></STRONG></A><BR>
<A NAME="asin/1"><STRONG><CODE>asin(X)</CODE></STRONG></A><BR>
<A NAME="acos/1"><STRONG><CODE>acos(X)</CODE></STRONG></A><BR>
<A NAME="atan/1"><STRONG><CODE>atan(X)</CODE></STRONG></A><BR>
<A NAME="atan2/2"><STRONG><CODE>atan2(Y, X)</CODE></STRONG></A><BR>
<A NAME="sinh/1"><STRONG><CODE>sinh(X)</CODE></STRONG></A><BR>
<A NAME="cosh/1"><STRONG><CODE>cosh(X)</CODE></STRONG></A><BR>
<A NAME="tanh/1"><STRONG><CODE>tanh(X)</CODE></STRONG></A><BR>
<A NAME="asinh/1"><STRONG><CODE>asinh(X)</CODE></STRONG></A><BR>
<A NAME="acosh/1"><STRONG><CODE>acosh(X)</CODE></STRONG></A><BR>
<A NAME="atanh/1"><STRONG><CODE>atanh(X)</CODE></STRONG></A><BR>
<A NAME="exp/1"><STRONG><CODE>exp(X)</CODE></STRONG></A><BR>
<A NAME="log/1"><STRONG><CODE>log(X)</CODE></STRONG></A><BR>
<A NAME="log10/1"><STRONG><CODE>log10(X)</CODE></STRONG></A><BR>
<A NAME="pow/2"><STRONG><CODE>pow(X, Y)</CODE></STRONG></A><BR>
<A NAME="sqrt/1"><STRONG><CODE>sqrt(X)</CODE></STRONG></A><BR>

<DIV CLASS=REFBODY><P>Types:
  <DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>X = Y = number()</CODE></STRONG><BR>

  </DIV>
</DIV>

<DIV CLASS=REFBODY>

<P>A collection of math functions which return floats. Arguments
are numbers. 

</DIV>

<P><A NAME="erf/1"><STRONG><CODE>erf(X) -&#62; float()</CODE></STRONG></A><BR>

<DIV CLASS=REFBODY><P>Types:
  <DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>X = number()</CODE></STRONG><BR>

  </DIV>
</DIV>

<DIV CLASS=REFBODY>

<P>Returns the error function of <CODE>X</CODE>, where
<PRE>
erf(X) = 2/sqrt(pi)*integral from 0 to X of exp(-t*t) dt.
</PRE>

</DIV>

<P><A NAME="erfc/1"><STRONG><CODE>erfc(X) -&#62; float()</CODE></STRONG></A><BR>

<DIV CLASS=REFBODY><P>Types:
  <DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>X = number()</CODE></STRONG><BR>

  </DIV>
</DIV>

<DIV CLASS=REFBODY>

<P><CODE>erfc(X)</CODE> returns <CODE>1.0 - erf(X)</CODE>, computed by
        methods that avoid cancellation for large <CODE>X</CODE>. 

</DIV>

<H3>Bugs</H3>
<DIV CLASS=REFBODY>

<P>As these are the C library, the bugs are the same.

</DIV>

<H3>AUTHORS</H3>
<DIV CLASS=REFBODY>
Mike Williams - support@erlang.ericsson.se<BR>

</DIV>
<CENTER>
<HR>
<SMALL>stdlib 1.14.2<BR>
Copyright &copy; 1991-2006
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>