Skip to content

Commit 05b6b8a

Browse files
v0.5.10
1 parent 0311635 commit 05b6b8a

20 files changed

Lines changed: 545 additions & 4 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.5.9.0
3+
### Nelson 0.5.10.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* [exist](./core/exist.md)
3939
* [exit](./core/exit.md)
4040
* [format](./core/format.md)
41+
* [inputname](./core/inputname.md)
4142
* [license](./core/license.md)
4243
* [maxNumCompThreads](./core/maxNumCompThreads.md)
4344
* [namelengthmax](./core/namelengthmax.md)
@@ -214,6 +215,7 @@
214215
* [norm](./elementary_functions/norm.md)
215216
* [num2bin](./elementary_functions/num2bin.md)
216217
* [numel](./elementary_functions/numel.md)
218+
* [pinv](./elementary_functions/pinv.md)
217219
* [real](./elementary_functions/real.md)
218220
* [rem](./elementary_functions/rem.md)
219221
* [repmat](./elementary_functions/repmat.md)
@@ -900,3 +902,13 @@
900902
* [mustBeTextScalar](./validators/mustBeTextScalar.md)
901903
* [mustBeValidVariableName](./validators/mustBeValidVariableName.md)
902904
* [mustBeVector](./validators/mustBeVector.md)
905+
906+
907+
* [polynomial_functions](./polynomial_functions/README.md)
908+
* [poly](./polynomial_functions/poly.md)
909+
* [polyder](./polynomial_functions/polyder.md)
910+
* [polyfit](./polynomial_functions/polyfit.md)
911+
* [polyint](./polynomial_functions/polyint.md)
912+
* [polyval](./polynomial_functions/polyval.md)
913+
* [polyvalm](./polynomial_functions/polyvalm.md)
914+
* [roots](./polynomial_functions/roots.md)

en/changelogs/CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# 0.5.10 (2021-10-30)
2+
3+
- Polynomial functions:
4+
5+
- `poly`: Polynomial with specified roots or characteristic polynomial.
6+
- `roots`: Polynomial roots.
7+
- `polyval`: Polynomial evaluation.
8+
- `polyvalm`: Matrix polynomial evaluation.
9+
- `polyint`: Polynomial integration.
10+
- `polyfit`: Polynomial curve fitting.
11+
- `polyder`: Polynomial differentiation.
12+
13+
- `pinv`: Moore-Penrose pseudoinverse.
14+
15+
- [#520](http://github.com/Nelson-numerical-software/nelson/issues/520): `inputname` get variable name of function input.
16+
17+
- [#525](http://github.com/Nelson-numerical-software/nelson/issues/525): use [`fast_float`](https://github.com/fastfloat/fast_float) library to parse numbers .
18+
19+
- [#528](http://github.com/Nelson-numerical-software/nelson/issues/528): Assignment in cell did not work in this case `[c{:}] = ind2sub (dv, i)`
20+
21+
- [#534](http://github.com/Nelson-numerical-software/nelson/issues/534): `diag(ones(0, 1), -1)` did not return zero as result.
22+
123
# 0.5.9 (2021-09-29)
224

325
- `leapyear` function: determine leap year.
@@ -28,7 +50,6 @@
2850

2951
- [#503](http://github.com/Nelson-numerical-software/nelson/issues/503): Boost 1.77 support (default on Windows).
3052

31-
3253
# 0.5.8 (2021-08-25)
3354

3455
## Features:

en/core/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ core functions
1717
* [exist](exist.md) - Check for the existence.
1818
* [exit](exit.md) - Exit from current Nelson application
1919
* [format](format.md) - Display format and number printing.
20+
* [inputname](inputname.md) - Get variable name of function input.
2021
* [license](license.md) - Get license information for Nelson.
2122
* [maxNumCompThreads](maxNumCompThreads.md) - Set/Get maximum number of computional threads.
2223
* [namelengthmax](namelengthmax.md) - Return the maximum variable name length.

en/core/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* [exist](exist.md)
99
* [exit](exit.md)
1010
* [format](format.md)
11+
* [inputname](inputname.md)
1112
* [license](license.md)
1213
* [maxNumCompThreads](maxNumCompThreads.md)
1314
* [namelengthmax](namelengthmax.md)

en/core/inputname.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
3+
# inputname
4+
5+
Get variable name of function input.
6+
7+
## Syntax
8+
9+
- s = inputname(argNumber)
10+
11+
## Input argument
12+
13+
- argNumber - a scalar, real, positive integer value: Number of function input argument
14+
15+
## Output argument
16+
17+
- s - character vector: variable name
18+
19+
## Description
20+
21+
22+
<p><b>inputname</b> get variable name of function input.</p>
23+
<p><b>inputname</b> is only useable within a function</p>
24+
25+
26+
## Example
27+
28+
```matlab
29+
function R = getinputname(varargin)
30+
R = string([]);
31+
for i = 1:nargin
32+
R = [R, string(inputname(i))];
33+
end
34+
end
35+
```
36+
37+
## See also
38+
39+
[nargin](nargin.md).
40+
## History
41+
42+
|Version|Description|
43+
|------|------|
44+
|1.0.0|initial version|
45+
46+
47+
## Author
48+
49+
Allan CORNET
50+
51+
52+

en/elementary_functions/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ elementary functions
5959
* [norm](norm.md) - Matrix and vector norms
6060
* [num2bin](num2bin.md) - Convert number to binary representation.
6161
* [numel](numel.md) - Number of elements.
62+
* [pinv](pinv.md) - Moore-Penrose pseudoinverse
6263
* [real](real.md) - Real part of an complex number.
6364
* [rem](rem.md) - Remainder after division.
6465
* [repmat](repmat.md) - Replicate and tile an array.

en/elementary_functions/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* [norm](norm.md)
5151
* [num2bin](num2bin.md)
5252
* [numel](numel.md)
53+
* [pinv](pinv.md)
5354
* [real](real.md)
5455
* [rem](rem.md)
5556
* [repmat](repmat.md)

en/elementary_functions/pinv.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
3+
# pinv
4+
5+
Moore-Penrose pseudoinverse
6+
7+
## Syntax
8+
9+
- y = pinv(A)
10+
- y = pinv(A, tol)
11+
12+
## Input argument
13+
14+
- A - matrix: input matrix
15+
- tol - scalar: singular value tolerance
16+
17+
## Output argument
18+
19+
- y - Moore-Penrose Pseudoinverse of matrix A.
20+
21+
## Description
22+
23+
24+
<p><b>pinv</b> returns Moore-Penrose Pseudoinverse of matrix A.</p>
25+
26+
27+
## Example
28+
29+
```matlab
30+
A = [1, 2, 3; 4, 5, 6];
31+
R = pinv(A)
32+
R = pinv(A, 2)
33+
```
34+
35+
## See also
36+
37+
[inv](../linear_algebra/inv.md), [svd](../linear_algebra/svd.md).
38+
## History
39+
40+
|Version|Description|
41+
|------|------|
42+
|1.0.0|initial version|
43+
44+
45+
## Author
46+
47+
Allan CORNET
48+
49+
50+

en/polynomial_functions/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
# Polynomials
4+
5+
Polynomials
6+
7+
## Description
8+
Polynomial functions
9+
10+
11+
* [poly](poly.md) - Polynomial with specified roots or characteristic polynomial.
12+
* [polyder](polyder.md) - Polynomial differentiation.
13+
* [polyfit](polyfit.md) - Polynomial curve fitting.
14+
* [polyint](polyint.md) - Polynomial integration.
15+
* [polyval](polyval.md) - Polynomial evaluation.
16+
* [polyvalm](polyvalm.md) - Matrix polynomial evaluation.
17+
* [roots](roots.md) - Find polynomial roots.
18+
19+
20+

0 commit comments

Comments
 (0)