|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 | +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | + |
| 4 | +<html xmlns = "http://www.w3.org/1999/xhtml"> |
| 5 | +<!-- |
| 6 | +SAME AS NELSON SOFTWARE |
| 7 | +--> |
| 8 | + |
| 9 | +<head> |
| 10 | +<meta name="generator" content= |
| 11 | +"HTML Generated by Nelson"/> |
| 12 | +<link rel="stylesheet" type="text/css" href="style.css" /> |
| 13 | +<link rel="stylesheet" href="mono-blue.css" type="text/css" /> |
| 14 | +<script src = "highlight.pack.js" type = "text/javascript"> |
| 15 | +</script> |
| 16 | +<script type = "text/javascript">hljs.initHighlightingOnLoad();</script> |
| 17 | +</script> |
| 18 | + <meta http-equiv="Content-Type" content = "text/html; charset=utf-8" /> |
| 19 | + <title>abs</title> |
| 20 | + |
| 21 | +</head> |
| 22 | +<body> |
| 23 | + |
| 24 | +<div class = "manualnavbar"> |
| 25 | +<table width = "100%"><tr> |
| 26 | + |
| 27 | +<td width="40%" class="center"> |
| 28 | +<span class="top"><a href="chapter_elementary_functions.html">elementary functions</a></span> |
| 29 | +</td> |
| 30 | + |
| 31 | +<td width = "30%" class = "next"> |
| 32 | +<span class = "next"><a href = "and.html">and >></a></span> |
| 33 | +</td> |
| 34 | + |
| 35 | +</tr></table> |
| 36 | +<hr /> |
| 37 | + |
| 38 | +<h1 class="refname">abs</h1> |
| 39 | +<hr/> |
| 40 | + |
| 41 | +<h3>Absolute value</h3> |
| 42 | +<hr/> |
| 43 | + |
| 44 | +<h3>Syntax</h3> |
| 45 | +<hr/> |
| 46 | + |
| 47 | +<table summary="syntax" style="width:50%"> |
| 48 | + <tr> |
| 49 | + <td>R = abs(M)</td> |
| 50 | + </tr> |
| 51 | + |
| 52 | +</table> |
| 53 | + |
| 54 | +<h3>Input argument</h3> |
| 55 | +<hr/> |
| 56 | + |
| 57 | +<dl> |
| 58 | +<dt><span class="term">M</span></dt> |
| 59 | +<dd> |
| 60 | +<p class="para">a variable</p> |
| 61 | +</dd> |
| 62 | + |
| 63 | +</dl> |
| 64 | + |
| 65 | +<h3>Output argument</h3> |
| 66 | +<hr/> |
| 67 | + |
| 68 | +<dl> |
| 69 | +<dt><span class="term">R</span></dt> |
| 70 | +<dd> |
| 71 | +<p class="para">result of abs: absolute value.</p> |
| 72 | +</dd> |
| 73 | + |
| 74 | +</dl> |
| 75 | + |
| 76 | +<h3>Description</h3> |
| 77 | +<hr/> |
| 78 | + |
| 79 | +<p></p> |
| 80 | + |
| 81 | + <p><b>abs</b> computes the absolute value.</p> |
| 82 | + <p>If input argument is a complex number, <b>abs</b> computes the complex magnitude.</p> |
| 83 | + |
| 84 | + |
| 85 | +<h3>Example</h3> |
| 86 | +<hr/> |
| 87 | + |
| 88 | +<pre> |
| 89 | +<code class = "nelson">x = [1+i,-i;i,2i]; |
| 90 | +r = abs(x) |
| 91 | +</code> |
| 92 | +</pre> |
| 93 | + |
| 94 | +<h3>See also</h3> |
| 95 | +<hr/> |
| 96 | + |
| 97 | +<p> |
| 98 | +<a href = "conj.html" class = "link">conj</a>.</p> |
| 99 | + |
| 100 | +<h3>History</h3> |
| 101 | +<hr/> |
| 102 | + |
| 103 | +<table summary = "history" style="width:50%"> |
| 104 | +<tr> |
| 105 | + <th>Version</th> |
| 106 | + <th>Description</th> |
| 107 | +</tr> |
| 108 | +<tr> |
| 109 | + <td>1.0.0</td> |
| 110 | + <td>initial version</td> |
| 111 | +</tr> |
| 112 | + |
| 113 | +</table> |
| 114 | + |
| 115 | +<h3>Author</h3> |
| 116 | +<hr/> |
| 117 | + |
| 118 | +<p>Allan CORNET</p> |
| 119 | + |
| 120 | +<div class = "manualnavbar"> |
| 121 | +<table width = "100%"><tr> |
| 122 | + |
| 123 | +<td width="40%" class="center"> |
| 124 | +<span class="top"><a href="chapter_elementary_functions.html">elementary functions</a></span> |
| 125 | +</td> |
| 126 | + |
| 127 | +<td width = "30%" class = "next"> |
| 128 | +<span class = "next"><a href = "and.html">and >></a></span> |
| 129 | +</td> |
| 130 | + |
| 131 | +</tr></table> |
| 132 | +<hr /> |
| 133 | + |
| 134 | +</body> |
| 135 | + |
| 136 | +</html> |
| 137 | + |
0 commit comments