|
6 | 6 | <!--
|
7 | 7 | This HTML was auto-generated from MATLAB code.
|
8 | 8 | To make changes, update the MATLAB code and republish this document.
|
9 |
| - --><title>idirectional</title><meta name="generator" content="MATLAB 9.10"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-08-27"><meta name="DC.source" content="idirectional_doc.m"><style type="text/css"> |
| 9 | + --><title>idirectional</title><meta name="generator" content="MATLAB 9.10"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-10-09"><meta name="DC.source" content="idirectional_doc.m"><style type="text/css"> |
10 | 10 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
|
11 | 11 |
|
12 | 12 | html { min-height:100%; margin-bottom:1px; }
|
|
73 | 73 | <table border=1>
|
74 | 74 | <tr>
|
75 | 75 | <td></td>
|
76 |
| - <td style="text-align:center"><b>Symbol</b></td> |
77 | 76 | <td style="text-align:center"><b>Variable</b></td>
|
| 77 | + <td style="text-align:center"><b>Symbol</b></td> |
78 | 78 | <td style="text-align:center"><b>Description</b></td>
|
79 | 79 | <td style="text-align:center"><b>Format</b></td>
|
80 | 80 | </tr>
|
81 | 81 | <tr>
|
82 | 82 | <td rowspan="4" style="text-align:center"><b>Input</b></td>
|
| 83 | + <td style="text-align:center"><TT>f</TT></td> |
83 | 84 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;f(\mathbf{x})" title="" /></td>
|
84 |
| - <td><TT>f</TT></td> |
85 | 85 | <td>multivariate, scalar-valued function (<img src="https://latex.codecogs.com/svg.latex?\inline&space;f:\mathbb{R}^{n}\rightarrow\mathbb{R}" title="" />)</td>
|
86 | 86 | <td style="text-align:center">1×1<BR>function_handle</td>
|
87 | 87 | </tr>
|
88 | 88 | <tr>
|
| 89 | + <td style="text-align:center"><TT>x0</TT></td> |
89 | 90 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{x}_{0}" title="" /></td>
|
90 |
| - <td><TT>x0</TT></td> |
91 | 91 | <td>point at which to evaluate the directional derivative</td>
|
92 | 92 | <td style="text-align:center">n×1<BR>double</td>
|
93 | 93 | </tr>
|
94 | 94 | <tr>
|
| 95 | + <td style="text-align:center"><TT>v</TT></td> |
95 | 96 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{v}" title="" /></td>
|
96 |
| - <td><TT>v</TT></td> |
97 | 97 | <td>vector defining direction of differentiation</td>
|
98 | 98 | <td style="text-align:center">n×1<BR>double</td>
|
99 | 99 | </tr>
|
100 | 100 | <tr>
|
| 101 | + <td style="text-align:center"><TT>h</TT></td> |
101 | 102 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;h" title="" /></td>
|
102 |
| - <td><TT>h</TT></td> |
103 | 103 | <td>(OPTIONAL) step size</td>
|
104 | 104 | <td style="text-align:center">1×1<BR>double</td>
|
105 | 105 | </tr>
|
106 | 106 | <tr>
|
107 | 107 | <td rowspan="1" style="text-align:center"><b>Output</b></td>
|
| 108 | + <td style="text-align:center"><TT>Dv</TT></td> |
108 | 109 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;D_{\mathbf{v}}f(\mathbf{x}_{0})" title="" /></td>
|
109 |
| - <td><TT>Dv</TT></td> |
110 | 110 | <td>directional derivative of <img src="https://latex.codecogs.com/svg.latex?\inline&space;f(\mathbf{x})" title="" />
|
111 | 111 | evaluated at <img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{x}=\mathbf{x}_{0}" title="" />
|
112 | 112 | in the direction of <img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{v}" title="" /></td>
|
|
120 | 120 | </pre><pre class="codeoutput">
|
121 | 121 | Dv =
|
122 | 122 |
|
123 |
| - 3.1241e+04 |
| 123 | + 3.124145481438281e+04 |
124 | 124 |
|
125 | 125 | </pre><p>Calculating the error,</p><pre class="codeinput">error = Dv-(31250+60*sin(8)^2*cos(8))
|
126 | 126 | </pre><pre class="codeoutput">
|
|
142 | 142 | % <table border=1>
|
143 | 143 | % <tr>
|
144 | 144 | % <td></td>
|
145 |
| -% <td style="text-align:center"><b>Symbol</b></td> |
146 | 145 | % <td style="text-align:center"><b>Variable</b></td>
|
| 146 | +% <td style="text-align:center"><b>Symbol</b></td> |
147 | 147 | % <td style="text-align:center"><b>Description</b></td>
|
148 | 148 | % <td style="text-align:center"><b>Format</b></td>
|
149 | 149 | % </tr>
|
150 | 150 | % <tr>
|
151 | 151 | % <td rowspan="4" style="text-align:center"><b>Input</b></td>
|
| 152 | +% <td style="text-align:center"><TT>f</TT></td> |
152 | 153 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;f(\mathbf{x})" title="" /></td>
|
153 |
| -% <td><TT>f</TT></td> |
154 | 154 | % <td>multivariate, scalar-valued function (<img src="https://latex.codecogs.com/svg.latex?\inline&space;f:\mathbb{R}^{n}\rightarrow\mathbb{R}" title="" />)</td>
|
155 | 155 | % <td style="text-align:center">1×1<BR>function_handle</td>
|
156 | 156 | % </tr>
|
157 | 157 | % <tr>
|
| 158 | +% <td style="text-align:center"><TT>x0</TT></td> |
158 | 159 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{x}_{0}" title="" /></td>
|
159 |
| -% <td><TT>x0</TT></td> |
160 | 160 | % <td>point at which to evaluate the directional derivative</td>
|
161 | 161 | % <td style="text-align:center">n×1<BR>double</td>
|
162 | 162 | % </tr>
|
163 | 163 | % <tr>
|
| 164 | +% <td style="text-align:center"><TT>v</TT></td> |
164 | 165 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{v}" title="" /></td>
|
165 |
| -% <td><TT>v</TT></td> |
166 | 166 | % <td>vector defining direction of differentiation</td>
|
167 | 167 | % <td style="text-align:center">n×1<BR>double</td>
|
168 | 168 | % </tr>
|
169 | 169 | % <tr>
|
| 170 | +% <td style="text-align:center"><TT>h</TT></td> |
170 | 171 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;h" title="" /></td>
|
171 |
| -% <td><TT>h</TT></td> |
172 | 172 | % <td>(OPTIONAL) step size</td>
|
173 | 173 | % <td style="text-align:center">1×1<BR>double</td>
|
174 | 174 | % </tr>
|
175 | 175 | % <tr>
|
176 | 176 | % <td rowspan="1" style="text-align:center"><b>Output</b></td>
|
| 177 | +% <td style="text-align:center"><TT>Dv</TT></td> |
177 | 178 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;D_{\mathbf{v}}f(\mathbf{x}_{0})" title="" /></td>
|
178 |
| -% <td><TT>Dv</TT></td> |
179 | 179 | % <td>directional derivative of <img src="https://latex.codecogs.com/svg.latex?\inline&space;f(\mathbf{x})" title="" />
|
180 | 180 | % evaluated at <img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{x}=\mathbf{x}_{0}" title="" />
|
181 | 181 | % in the direction of <img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{v}" title="" /></td>
|
|
0 commit comments