Point Notation: Difference between revisions
Sudleyplace (talk | contribs) No edit summary |
Sudleyplace (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Overview == | |||
<table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> | <table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> | ||
<tr> | <tr> | ||
Line 20: | Line 22: | ||
<td></td> | <td></td> | ||
<td>e.g., <apll>2p3</apll> as a shorthand for <apll>2π<sup>3</sup></apll> or <apll>2×(○1)*3</apll></td> | <td>e.g., <apll>2p3</apll> as a shorthand for <apll>2π<sup>3</sup></apll> or <apll>2×(○1)*3</apll></td> | ||
</tr> | |||
<tr> | |||
<td valign="bottom"><b>Rational Point Notation</b>:</td> | |||
<td></td> | |||
<td></td> | |||
<td>e.g., <apll>2r3</apll> as a shorthand for <apll>2{divide}3</apll> as a rational number</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 37: | Line 45: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><b>Base</b>, <b>Pi</b>, and <b> | <td><b>Base</b>, <b>Euler</b>, <b>Pi</b>, and <b>Rational</b> Point Notations are extensions to the familiar <b>Decimal</b> Point Notation as well as <b>Exponential</b> Point or Scientific Notation methods of entering numeric constants. Thanks to the designers of J for these clever [http://www.jsoftware.com/help/dictionary/dcons.htm ideas].</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 46: | Line 54: | ||
This notation makes it easy to enter numeric constants in an arbitrary base. | This notation makes it easy to enter numeric constants in an arbitrary base. | ||
The number to the left of the <apll>b</apll> is the base of the number system for the characters to the right of the <apll>b</apll>. The base may be represented in several ways including integers, <b>Exponential</b>, <b>Decimal</b>, <b>Pi</b>, and <b> | The number to the left of the <apll>b</apll> is the base of the number system for the characters to the right of the <apll>b</apll>. The base may be represented in several ways including integers, <b>Exponential</b>, <b>Decimal</b>, <b>Pi</b>, <b>Euler</b>, and <b>Rational</b> Point Notation, but not <b>Base</b> Point Notation. | ||
For example, <apll>1e3b111</apll> is the same as <apll>1000b111</apll>. | For example, <apll>1e3b111</apll> is the same as <apll>1000b111</apll>. | ||
Line 54: | Line 62: | ||
The characters to the right of the <apll>b</apll> may range from <b>0-9</b> or <b>a-z</b> where the latter range is a way of representing numbers from <b>10-35</b> in a single character. The uppercase letters (<b>A-Z</b>) have the same values as the corresponding lowercase case letters and may be used instead of or intermixed with them. | The characters to the right of the <apll>b</apll> may range from <b>0-9</b> or <b>a-z</b> where the latter range is a way of representing numbers from <b>10-35</b> in a single character. The uppercase letters (<b>A-Z</b>) have the same values as the corresponding lowercase case letters and may be used instead of or intermixed with them. | ||
For example, <apll>10bzzZ</apll> is the same as <apll>10⊥35 35 35 35</apll>. | For example, <apll>10bzzZ</apll> is the same as <apll>10⊥35 35 35 35</apll>, and <apll>1r2b111</apll> is the same as <apll>0.5b111</apll>. | ||
== Euler Point Notation == | == Euler Point Notation == | ||
This notation allows you to enter numeric constants that are in the form of the product of a multiplier and <apll>e</apll> (the base of the natural logarithms) raised to an exponent, that is, <apll>Me<sup>E</sup></apll> or <apll>M×(*1)*E</apll>. The numbers to the left (multiplier) and right (exponent) of the <apll>x</apll> may be represented in several ways including integers, <b>Decimal</b>, or <b> | This notation allows you to enter numeric constants that are in the form of the product of a multiplier and <apll>e</apll> (the base of the natural logarithms) raised to an exponent, that is, <apll>Me<sup>E</sup></apll> or <apll>M×(*1)*E</apll>. The numbers to the left (multiplier) and right (exponent) of the <apll>x</apll> may be represented in several ways including integers, <b>Decimal</b>, <b>Exponential</b>, or <b>Rational</b> Point Notation, but not <b>Base</b>, <b>Pi</b>, or <b>Euler</b> Point Notation. | ||
For example, <apll>1e2x1.1</apll> is the same as <apll>100x1.1</apll>. | For example, <apll>1e2x1.1</apll> is the same as <apll>100x1.1</apll>, and <apll>1r2x1.1e2</apll> is the same as <apll>0.5x110</apll>. | ||
Both the multiplier and exponent may be negative and/or fractional as in <apll>{overbar}1e2x{overbar}3.3</apll>. | Both the multiplier and exponent may be negative and/or fractional as in <apll>{overbar}1e2x{overbar}3.3</apll>. | ||
Line 66: | Line 74: | ||
== Pi Point Notation == | == Pi Point Notation == | ||
This notation allows you to enter numeric constants that are in the form of the product of a multiplier and <apll>π</apll> raised to an exponent, that is, <apll>Mπ<sup>E</sup></apll> or <apll>M×(○1)*E</apll>. The numbers to the left (multiplier) and right (exponent) of the <apll>p</apll> may be represented in several ways including integers, <b>Decimal</b>, or <b> | This notation allows you to enter numeric constants that are in the form of the product of a multiplier and <apll>π</apll> raised to an exponent, that is, <apll>Mπ<sup>E</sup></apll> or <apll>M×(○1)*E</apll>. The numbers to the left (multiplier) and right (exponent) of the <apll>p</apll> may be represented in several ways including integers, <b>Decimal</b>, <b>Exponential</b>, or <b>Rational</b> Point Notation, but not <b>Base</b>, <b>Euler</b>, or <b>Pi</b> Point Notation. | ||
For example, <apll>1e2p1.1</apll> is the same as <apll>100p1.1</apll>. | For example, <apll>1e2p1.1</apll> is the same as <apll>100p1.1</apll>, and <apll>1r2p1.1e2</apll> is the same as <apll>0.5p110</apll>. | ||
Both the multiplier and exponent may be negative and/or fractional as in <apll>{overbar}1e2p{overbar}3.3</apll>. | Both the multiplier and exponent may be negative and/or fractional as in <apll>{overbar}1e2p{overbar}3.3</apll>. | ||
== Rational Point Notation == | |||
This notation allows you to enter fractions as rational numbers and have them be retained as rational numbers. The implementation of this feature is woefully incomplete — in fact, the only place this notation is allowed is as an argument to <b>Base</b>, <b>Euler</b>, or <b>Pi</b> Point Notation. |
Revision as of 21:13, 22 November 2008
Overview
|
||||||||||||||||||||||||
Base, Euler, Pi, and Rational Point Notations are extensions to the familiar Decimal Point Notation as well as Exponential Point or Scientific Notation methods of entering numeric constants. Thanks to the designers of J for these clever ideas. |
Base Point Notation
This notation makes it easy to enter numeric constants in an arbitrary base.
The number to the left of the b is the base of the number system for the characters to the right of the b. The base may be represented in several ways including integers, Exponential, Decimal, Pi, Euler, and Rational Point Notation, but not Base Point Notation.
For example, 1e3b111 is the same as 1000b111.
Note that the base may also be negative as in ¯1b0z or fractional as in 0.1b1234.
The characters to the right of the b may range from 0-9 or a-z where the latter range is a way of representing numbers from 10-35 in a single character. The uppercase letters (A-Z) have the same values as the corresponding lowercase case letters and may be used instead of or intermixed with them.
For example, 10bzzZ is the same as 10⊥35 35 35 35, and 1r2b111 is the same as 0.5b111.
Euler Point Notation
This notation allows you to enter numeric constants that are in the form of the product of a multiplier and e (the base of the natural logarithms) raised to an exponent, that is, MeE or M×(*1)*E. The numbers to the left (multiplier) and right (exponent) of the x may be represented in several ways including integers, Decimal, Exponential, or Rational Point Notation, but not Base, Pi, or Euler Point Notation.
For example, 1e2x1.1 is the same as 100x1.1, and 1r2x1.1e2 is the same as 0.5x110.
Both the multiplier and exponent may be negative and/or fractional as in ¯1e2x¯3.3.
Pi Point Notation
This notation allows you to enter numeric constants that are in the form of the product of a multiplier and π raised to an exponent, that is, MπE or M×(○1)*E. The numbers to the left (multiplier) and right (exponent) of the p may be represented in several ways including integers, Decimal, Exponential, or Rational Point Notation, but not Base, Euler, or Pi Point Notation.
For example, 1e2p1.1 is the same as 100p1.1, and 1r2p1.1e2 is the same as 0.5p110.
Both the multiplier and exponent may be negative and/or fractional as in ¯1e2p¯3.3.
Rational Point Notation
This notation allows you to enter fractions as rational numbers and have them be retained as rational numbers. The implementation of this feature is woefully incomplete — in fact, the only place this notation is allowed is as an argument to Base, Euler, or Pi Point Notation.