Skip to content

Commit 019a0a6

Browse files
v0.2.7
1 parent 3c9ed3a commit 019a0a6

24 files changed

Lines changed: 692 additions & 2 deletions

File tree

en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![banner](banner_homepage.png)
22

3-
### Nelson 0.2.6.0
3+
### Nelson 0.2.7.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,20 @@
1212

1313

1414
* [interpreter](./interpreter/README.md)
15+
* [abort](./interpreter/abort.md)
16+
* [break](./interpreter/break.md)
17+
* [continue](./interpreter/continue.md)
18+
* [for](./interpreter/for.md)
19+
* [function](./interpreter/function.md)
20+
* [if](./interpreter/if.md)
1521
* [iskeyword](./interpreter/iskeyword.md)
1622
* [keyboard](./interpreter/keyboard.md)
1723
* [max_recursion_depth](./interpreter/max_recursion_depth.md)
1824
* [parsefile](./interpreter/parsefile.md)
1925
* [parsestring](./interpreter/parsestring.md)
26+
* [switch](./interpreter/switch.md)
27+
* [try](./interpreter/try.md)
28+
* [while](./interpreter/while.md)
2029

2130

2231
* [core](./core/README.md)
@@ -192,6 +201,7 @@
192201
* [elementary_functions](./elementary_functions/README.md)
193202
* [abs](./elementary_functions/abs.md)
194203
* [and](./elementary_functions/and.md)
204+
* [angle](./elementary_functions/angle.md)
195205
* [cast](./elementary_functions/cast.md)
196206
* [ceil](./elementary_functions/ceil.md)
197207
* [circshift](./elementary_functions/circshift.md)
@@ -201,6 +211,7 @@
201211
* [ctranspose](./elementary_functions/ctranspose.md)
202212
* [disp](./elementary_functions/disp.md)
203213
* [eq](./elementary_functions/eq.md)
214+
* [exp](./elementary_functions/exp.md)
204215
* [factorial](./elementary_functions/factorial.md)
205216
* [fix](./elementary_functions/fix.md)
206217
* [floor](./elementary_functions/floor.md)
@@ -218,6 +229,7 @@
218229
* [ldivide](./elementary_functions/ldivide.md)
219230
* [le](./elementary_functions/le.md)
220231
* [length](./elementary_functions/length.md)
232+
* [log](./elementary_functions/log.md)
221233
* [lt](./elementary_functions/lt.md)
222234
* [minus](./elementary_functions/minus.md)
223235
* [mldivide](./elementary_functions/mldivide.md)
@@ -243,6 +255,7 @@
243255
* [shortcutand](./elementary_functions/shortcutand.md)
244256
* [shortcutor](./elementary_functions/shortcutor.md)
245257
* [size](./elementary_functions/size.md)
258+
* [sqrt](./elementary_functions/sqrt.md)
246259
* [subsindex](./elementary_functions/subsindex.md)
247260
* [mtimes](./elementary_functions/times.md)
248261
* [transpose](./elementary_functions/transpose.md)
@@ -349,6 +362,7 @@
349362
* [acos](./trigonometric_functions/acos.md)
350363
* [asin](./trigonometric_functions/asin.md)
351364
* [atan](./trigonometric_functions/atan.md)
365+
* [atan2](./trigonometric_functions/atan2.md)
352366
* [cos](./trigonometric_functions/cos.md)
353367
* [cosd](./trigonometric_functions/cosd.md)
354368
* [cosh](./trigonometric_functions/cosh.md)

en/elementary_functions/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ elementary functions
1010

1111
* [abs](abs.md) - Absolute value
1212
* [and](and.md) - logical 'AND' operator, &
13+
* [angle](angle.md) - Phase angle
1314
* [cast](cast.md) - Converts variable to a different data type
1415
* [ceil](ceil.md) - Round up
1516
* [circshift](circshift.md) - Circular shift
@@ -19,6 +20,7 @@ elementary functions
1920
* [ctranspose](ctranspose.md) - Returns complex conjugate transpose: ' operator.
2021
* [disp](disp.md) - Display a variable.
2122
* [eq](eq.md) - equality, == operator.
23+
* [exp](exp.md) - Exponential
2224
* [factorial](factorial.md) - Factorial function
2325
* [fix](fix.md) - Round towards zero
2426
* [floor](floor.md) - Round down
@@ -36,6 +38,7 @@ elementary functions
3638
* [ldivide](ldivide.md) - Left division, .\ operator.
3739
* [le](le.md) - less than or equal, ≤ operator.
3840
* [length](length.md) - Length of an object.
41+
* [log](log.md) - Natural logarithm.
3942
* [lt](lt.md) - less than, < operator.
4043
* [minus](minus.md) - Subtraction, - operator
4144
* [mldivide](mldivide.md) - Matrix left division, \ operator.
@@ -61,6 +64,7 @@ elementary functions
6164
* [shortcutand](shortcutand.md) - Short circuit 'AND' operator, &&
6265
* [shortcutor](shortcutor.md) - Short circuit 'OR' operator, ||
6366
* [size](size.md) - Size of an object.
67+
* [sqrt](sqrt.md) - Square root.
6468
* [subsindex](subsindex.md) - Convert an object to an index vector.
6569
* [mtimes](times.md) - Element wise multiplication, .* operator
6670
* [transpose](transpose.md) - Returns vector or matrix transpose: .' operator.

en/elementary_functions/SUMMARY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
* [elementary_functions](README.md)
22
* [abs](abs.md)
33
* [and](and.md)
4+
* [angle](angle.md)
45
* [cast](cast.md)
56
* [ceil](ceil.md)
67
* [circshift](circshift.md)
@@ -10,6 +11,7 @@
1011
* [ctranspose](ctranspose.md)
1112
* [disp](disp.md)
1213
* [eq](eq.md)
14+
* [exp](exp.md)
1315
* [factorial](factorial.md)
1416
* [fix](fix.md)
1517
* [floor](floor.md)
@@ -27,6 +29,7 @@
2729
* [ldivide](ldivide.md)
2830
* [le](le.md)
2931
* [length](length.md)
32+
* [log](log.md)
3033
* [lt](lt.md)
3134
* [minus](minus.md)
3235
* [mldivide](mldivide.md)
@@ -52,6 +55,7 @@
5255
* [shortcutand](shortcutand.md)
5356
* [shortcutor](shortcutor.md)
5457
* [size](size.md)
58+
* [sqrt](sqrt.md)
5559
* [subsindex](subsindex.md)
5660
* [mtimes](times.md)
5761
* [transpose](transpose.md)

en/elementary_functions/angle.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
3+
# angle
4+
5+
Phase angle
6+
7+
## Syntax
8+
9+
- R = angle(Z)
10+
11+
## Input argument
12+
13+
- Z - a variable (double, single, complex)
14+
15+
## Output argument
16+
17+
- R - result of angle function.
18+
19+
## Description
20+
21+
22+
<p><b>angle</b> computes the phase angle, equivalent to <b>atan2(imag(Z), real(Z))</b>.</p>
23+
24+
25+
## Example
26+
27+
```matlab
28+
x = [1+i,-i;i,2i];
29+
r = angle(x)
30+
```
31+
32+
## See also
33+
34+
[atan2](../trigonometric_functions/atan2.md).
35+
## History
36+
37+
|Version|Description|
38+
|------|------|
39+
|1.0.0|initial version|
40+
41+
42+
## Author
43+
44+
Allan CORNET
45+
46+
47+

en/elementary_functions/exp.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
3+
# exp
4+
5+
Exponential
6+
7+
## Syntax
8+
9+
- R = exp(M)
10+
11+
## Input argument
12+
13+
- M - a variable
14+
15+
## Output argument
16+
17+
- R - result of exp: exponential.
18+
19+
## Description
20+
21+
22+
<p><b>exp</b> computes the exponential value.</p>
23+
<p>If input argument is a complex number, <b>exp</b> computes exp(x) * (cos(y) + i * sin(y)) with z = x + i * y.</p>
24+
25+
26+
## Example
27+
28+
```matlab
29+
x = [1+i,-i;i,2i];
30+
r = exp(x)
31+
```
32+
33+
## See also
34+
35+
[conj](conj.md).
36+
## History
37+
38+
|Version|Description|
39+
|------|------|
40+
|1.0.0|initial version|
41+
42+
43+
## Author
44+
45+
Allan CORNET
46+
47+
48+

en/elementary_functions/log.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
3+
# log
4+
5+
Natural logarithm.
6+
7+
## Syntax
8+
9+
- R = log(M)
10+
11+
## Input argument
12+
13+
- M - a variable
14+
15+
## Output argument
16+
17+
- R - result of log: Natural logarithm.
18+
19+
## Description
20+
21+
22+
<p><b>log</b> computes the natural logarithm.</p>
23+
<p>If input argument is a complex number or negative, <b>log(z)</b> computes log(abs(z)) + angle(z) * i.</p>
24+
25+
26+
## Example
27+
28+
```matlab
29+
x = [1+i,-i;i,2i];
30+
r = log(x)
31+
```
32+
33+
## See also
34+
35+
[exp](exp.md), [abs](abs.md), [angle](angle.md).
36+
## History
37+
38+
|Version|Description|
39+
|------|------|
40+
|1.0.0|initial version|
41+
42+
43+
## Author
44+
45+
Allan CORNET
46+
47+
48+

en/elementary_functions/sqrt.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
3+
# sqrt
4+
5+
Square root.
6+
7+
## Syntax
8+
9+
- R = sqrt(M)
10+
11+
## Input argument
12+
13+
- M - a variable
14+
15+
## Output argument
16+
17+
- R - result of sqrt: square root.
18+
19+
## Description
20+
21+
22+
<p><b>sqrt</b> computes the square root.</p>
23+
<p>If input argument is a complex number or negative, <b>sqrt(z)</b> computes: sqrt(r) * (cos(phi/2) + sin(phi/2) * i) with</p>
24+
<p>r = sqrt((real(z) * real(z)) + (imag(z) * imag(z))) and phi = atan2(imag(z), real(z))</p>
25+
26+
27+
## Example
28+
29+
```matlab
30+
x = -3:3;
31+
r = sqrt(x)
32+
```
33+
34+
## See also
35+
36+
[log](log.md), [abs](abs.md), [angle](angle.md).
37+
## History
38+
39+
|Version|Description|
40+
|------|------|
41+
|1.0.0|initial version|
42+
43+
44+
## Author
45+
46+
Allan CORNET
47+
48+
49+

en/interpreter/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ interpreter functions
88
interpreter functions
99

1010

11+
* [abort](abort.md) - stop evaluation.
12+
* [break](break.md) - exit evaluation loop.
13+
* [continue](continue.md) - continue evaluation in loop.
14+
* [for](for.md) - for loop.
15+
* [function](function.md) - function declaration.
16+
* [if](if.md) - conditional statement.
1117
* [iskeyword](iskeyword.md) - Returns all Nelson keywords.
1218
* [keyboard](keyboard.md) - Stops script execution and enter in debug mode.
1319
* [max_recursion_depth](max_recursion_depth.md) - Internal limit on the number of times a function may be called recursively.
1420
* [parsefile](parsefile.md) - Parse a Nelson file.
1521
* [parsestring](parsestring.md) - Parse a string.
22+
* [switch](switch.md) - switch statement.
23+
* [try](try.md) - try/catch statement.
24+
* [while](while.md) - while loop.
1625

1726

1827

en/interpreter/SUMMARY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
* [interpreter](README.md)
2+
* [abort](abort.md)
3+
* [break](break.md)
4+
* [continue](continue.md)
5+
* [for](for.md)
6+
* [function](function.md)
7+
* [if](if.md)
28
* [iskeyword](iskeyword.md)
39
* [keyboard](keyboard.md)
410
* [max_recursion_depth](max_recursion_depth.md)
511
* [parsefile](parsefile.md)
612
* [parsestring](parsestring.md)
13+
* [switch](switch.md)
14+
* [try](try.md)
15+
* [while](while.md)
716

0 commit comments

Comments
 (0)