Last change
on this file since 2734 was
1403,
checked in by lfita, 8 years ago
|
Fixing issues and introducing $pyHOME
|
File size:
1014 bytes
|
Rev | Line | |
---|
[1223] | 1 | <HTML> |
---|
| 2 | <HEAD> |
---|
| 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"/> |
---|
| 4 | <LINK REL="stylesheet" TYPE="text/css" HREF="../PyNCplot.css"/> |
---|
| 5 | </HEAD> |
---|
| 6 | |
---|
| 7 | </HEAD> |
---|
| 8 | <BODY> |
---|
| 9 | <DIV CLASS="valheader"> |
---|
| 10 | Significant decomposition |
---|
| 11 | </DIV> |
---|
| 12 | <DIV CLASS="valimg"> |
---|
| 13 | <P CLASS="explain"> |
---|
| 14 | Script to decompose a given number by its signifcant potencies |
---|
| 15 | </P> |
---|
| 16 | </DIV> |
---|
| 17 | <DIV CLASS="valhelp"> |
---|
| 18 | returns: [numPot], [Potlist], [Diglist]<BR> |
---|
| 19 | [numPot]: number of potencies<BR> |
---|
| 20 | [Potlist]: list of potencies<BR> |
---|
| 21 | [Diglist]: list of digits<BR> |
---|
| 22 | Thus:<BR> |
---|
| 23 | num <> np.sum([Diglist]*10.**[Potlist])<BR> |
---|
| 24 | <BR> |
---|
| 25 | num= number to decompose<BR> |
---|
| 26 | minpot= minumum potence to decompose<BR> |
---|
| 27 | </DIV> |
---|
| 28 | <DIV CLASS="valins"> |
---|
[1403] | 29 | $ python ${pyHOME}/generic.py -o significant_decomposition -S 3.141592,-6<BR> |
---|
[1223] | 30 | (8, [0.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0], [3, 1, 4, 1, 5, 9, 2]) |
---|
| 31 | </DIV> |
---|
| 32 | </BODY> |
---|
| 33 | </HTML> |
---|
| 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.