Skip to content

Commit 966a997

Browse files
committed
more touch ups
1 parent eb4d26c commit 966a997

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

README.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Other implementations:
446446

447447
## element
448448

449-
In set theory, the "element of" symbol `` and `` can be used to describe whether something is an element of a set. For example:
449+
In set theory, the "element of" symbol `` and `` can be used to describe whether something is an element of a *set*. For example:
450450

451451
![element1](img/element1.png)
452452

@@ -486,29 +486,35 @@ You can also use the "not an element of" symbols `∉` and `∌` like so:
486486

487487
## common sets
488488

489-
You may see some some large letters among equations. These are commonly used to describe "sets."
489+
You may see some some large stylized letters among equations. These are commonly used to describe sets.
490490

491-
For example, the following uses `` to describe *k* as an [element of](#element) the set of *real numbers*.
491+
For example, we might describe *k* to be an [element of](#element) the set ``.
492492

493493
![real](http://latex.codecogs.com/svg.latex?k%20%5Cin%20%5Cmathbb%7BR%7D)
494494

495495
<!-- k \in \mathbb{R} -->
496496

497-
JavaScript treats floats and integers as the same type, so the following would be a simple test for a real number:
497+
Listed below are a few common sets and their symbols.
498+
499+
#### `` real numbers
500+
501+
The large `` describes the set of *real numbers*. These include integers, as well as rational and irrational numbers.
502+
503+
JavaScript treats floats and integers as the same type, so the following would be a simple example of our *k* ∈ ℝ example:
498504

499505
```js
500506
typeof k === 'number'
501507
```
502508

503-
Aside form `` for real numbers, here are a few common sets to be aware of:
504-
505-
##### `` rational numbers
509+
#### `` rational numbers
506510

507-
A real number that can be written as a fraction or *ratio* (like ``). The denominator cannot be zero.
511+
Rational numbers are real numbers that can be expressed as a fraction, or *ratio* (like ``). Rational numbers cannot have a denominator of zero.
508512

509513
This also means that all integers are rational numbers, since the denominator can be expressed as 1.
510514

511-
##### `` integers
515+
An irrational number, on the other hand, is one that cannot be expressed as a ratio, like π (PI).
516+
517+
#### `` integers
512518

513519
An integer, i.e. a real number that has no fractional part. These can be positive or negative.
514520

@@ -520,7 +526,7 @@ function isInteger (n) {
520526
}
521527
```
522528

523-
##### `` natural numbers
529+
#### `` natural numbers
524530

525531
A natural number, a positive and non-negative integer. Depending on the context and field of study, the set may or may not include zero, so it could look like either of these:
526532

@@ -537,7 +543,7 @@ function isNaturalNumber (n) {
537543
}
538544
```
539545

540-
##### `` complex numbers
546+
#### `` complex numbers
541547

542548
A complex number is a combination of a real number and an imaginary number. For more info, see [A Visual, Intuitive Guide to Imaginary Numbers](http://betterexplained.com/articles/a-visual-intuitive-guide-to-imaginary-numbers/).
543549

@@ -640,7 +646,7 @@ function sgn (x) {
640646
}
641647
```
642648

643-
See [signum](https://github.com/scijs/signum) for this as a module.
649+
See [signum](https://github.com/scijs/signum) for this function as a module.
644650

645651
Other examples of special functions: *sin*, *cos*, *tan*.
646652

@@ -676,6 +682,8 @@ In programming, the *domain* and *codomain* might be seen as the *input* and *ou
676682

677683
<!-- sgn : \mathbb{R} \rightarrow \mathbb{Z} -->
678684

685+
The arrow here, without a tail, is used to map one *set* to another.
686+
679687
In JavaScript and other dynamically typed languages, you might use documentation and/or runtime checks to explain and validate the input/output.
680688

681689
```js
@@ -694,7 +702,7 @@ function square (a) {
694702

695703
Some tools like [flowtype](http://flowtype.org/) attempt to bring static typing into JavaScript.
696704

697-
Other languages, like Java, allow for true method overloading based on the static types of a function's input/output. This is closer to mathematics, since two functions are not the same if they use a different *domain*.
705+
Other languages, like Java, allow for true method overloading based on the static types of a function's input/output. This is closer to mathematics: two functions are not the same if they use a different *domain*.
698706

699707
## prime
700708

@@ -730,7 +738,11 @@ function fPrime (x) {
730738

731739
Multiple prime symbols can be used to describe the second derivative *ƒ′′* and third derivative *ƒ′′′*. After this, authors typically express higher orders with roman numerals *ƒ*<sup>IV</sup> or superscript numbers *ƒ*<sup>(n)</sup>.
732740

733-
## equality arrows
741+
## lines & arrows
742+
743+
We have already seen some arrows in the [function notation](#function-notation) section. Here are a few other variations.
744+
745+
#### equality
734746

735747
In math, the `<` `>` `` and `` are typically used in the same way we use them in code: *less than*, *greater than*, *less than or equal to* and *greater than or equal to*, respectively.
736748

0 commit comments

Comments
 (0)