User:Kinglag/sandbox
From Wikipedia, the free encyclopedia
Contents |
[edit] Math Tex
[edit] Some Stuff about bases to practice TeX
- b, is the base
- m, is the place magnitude
- n, is the multiplier its range is
[edit] Examples
- In base 10, one thousand two hundred thirty four and 5 tenths:
- In base 2, one sixtyfour one eight and one twoth
[edit] Coding Your Own Random Base Adder (Object Oriented, Integers Only)
- Classes that will be needed:
- A number class (Number) that represents your random base number, whose members are:
- A simple class that won't need accessors it will contain an integer datatype whose range is equal to or greater than the desired base. (Integer)
- A data structure in the form of a double linked list. (ArrayList)
- A boolean that is the sign.
- Operators can be contained in the number class or in a separate operator class that uses two number parameters and static methods.
Stated another way: Number has a ArrayList of type Integer and boolean.
Each Integer in the ArrayList is the n in the above formula. Each Integer's index in the ArrayList is its magnitude.
To add two numbers start at the lowest magnitude (0) and add them. Compare the sum to the base and if the sum is greater than the base set carry to 1. Then add the next greatest magnitude and the previous magnitude's carry, repeat until the highest magnitude is reached. If there is a carry add one to the next greatest magnitude of number of the sum.
Example:
- 19 + 29
- 9 + 9 = 18
- ??8, carry the 1
- 1 + 2 + 1 = 4 1 from 19 + 2 from 29 + carry
- 48
[edit] Example 1
From Field Mathematics for Electromagnetics, Photonics and Material Science by Dr. Bernard Maxum. Equation: 5.3-10:
[edit] Example 2
[edit] Example 3
[edit] Statistics
[edit] Vocabulary
- data: raw observations of a particular question.
- statistics: collecting, simplfying, describing, and infering data.
- population: a whole group.
- sample: a part of a whole group.
- parameter: a description of data based on a population.
- statistic: a description of data based on a sample.
- ranked: data grouped in ascending or descending order.
- resistant measure: A measure of data that is not influenced by extreme data values.
[edit] Formula
[edit] Range
H: High data value
L: Low data value
R: Range
R = H − L
[edit] Arithmetic Average (Mean, Average)
- Population
x: data value i: index of a data value N: the count of data values of a population.
- Sample
μ: Arithmetic average of a population. n: the Count of data vaules of a sample. : Arithmetic average of a sample.
Note: there is no numeric difference in these formulas.
[edit] Median
: Median
N: the count of data values of a population.
n: the Count of data vaules of a sample.
If i is not a whole number average the two nearest values.
Note: there is no numeric difference in these formulas.
[edit] Standard Deviation and Variance
- Population
σ2: Population variance σ: Population deviation σ2 * Sample < math > s2: sample variance s: sample deviation
[edit] Table
Practice of wikicode tables. Help:Table#Other_table_syntax
[edit] Multiplication Table
1 | 2 | 3 |
2 | 4 | 6 |
3 | 6 | 9 |
[edit] Coordinate Table
0,0 | 1,0 | 2,0 |
0,1 | 1,1 | 2,1 |
0,2 | 1,2 | 2,2 |