Wikipedia:Reference desk/Mathematics: Difference between revisions
HagermanBot (talk | contribs) m 129.78.208.4 didn't sign: "→Solve an equation of 4th order: " |
|||
Line 110: | Line 110: | ||
My basic problem was to find out if a circle was intersecting a line represented by a quadratic equation. I may simplify it so that it's simply f(x) = x<sup>2</sup> but I think it'd be neat to do it for the general. Any help would be appreciated. [[User:Chris Mason|Chris M.]] 02:13, 27 April 2007 (UTC) |
My basic problem was to find out if a circle was intersecting a line represented by a quadratic equation. I may simplify it so that it's simply f(x) = x<sup>2</sup> but I think it'd be neat to do it for the general. Any help would be appreciated. [[User:Chris Mason|Chris M.]] 02:13, 27 April 2007 (UTC) |
||
: You can find rational roots by using a Diophantine method (forget what it is exactly -- method used to find rational points on a sphere). |
: You can find rational roots by using a Diophantine method (forget what it is exactly -- method used to find rational points on a sphere). <small>—The preceding [[Wikipedia:Sign your posts on talk pages|unsigned]] comment was added by [[Special:Contributions/129.78.208.4|129.78.208.4]] ([[User talk:129.78.208.4|talk]]) 05:38, 27 April 2007 (UTC).</small><!-- HagermanBot Auto-Unsigned --> |
||
= April 27 = |
= April 27 = |
Revision as of 05:39, 27 April 2007
Please discuss those issues on its associated talk page, Wikipedia talk:Reference desk/guidelines.
Wikipedia:Reference desk/headercfg
April 21
How many different ways can I express 1,-1,1,-1, ... as a one-variable function?
Infinitely many, I suppose, but what I'm looking for is all the interesting variations. For example,
f(x) = -1^(x-1)
I guess works, but how could I represent this using only modular arithmetic, or trig, or boolean algebra, topology, fractal geometry, or some other area of mathematics that I have never even heard of yet. Basically I'm wondering if there is a list somewhere that shows all the (interestingly) different ways to do it. I know it's not a well-defined question, but I'm curious. NoClutter 00:16, 21 April 2007 (UTC)
- Ah, but what is interesting? You have stuff like various periodic sine and cosine graphs, you can use f(n)=(-1)n+1, f(n)=-(i2)n=-i2n, or a function you think is interesting enough and when you put a value in you get -1, then power it to n. If you get bored, look around at this on OEIS. x42bn6 Talk 00:26, 21 April 2007 (UTC)
- Is a function for that possible in modular arithmetic? Say f(n) = 2n + 1 (mod 4) which gives 1, 3, 1, 3, ... And 3 ≡ -1 (mod 4), so does this work? –Pomte 00:41, 21 April 2007 (UTC)
How about some infinite series? =).
lol.--Kirby♥time 01:24, 21 April 2007 (UTC)
Test question
Hi Reference desk. I got a question on a math test wrong, but I don't know why. I've tried to solve it, but don't understand. I was wondering if you could help. The question is as follows:
How many square meters is 7,000,000 square centimeters ?
[A] 70,000,000,000 m square [B] 7,000 m square [C] 700 m square [D] 0.007 m square [E] None of these
I chose E, thinking the answer is 70,000 (7,000,000 divided by 100 = 70,000). What did I do wrong? Thanks in advance, Nick.
- A meter is 100 cm, so a square meter is not 100 square cm but 100^2 square cm.
- Imagine a square with side length 1 meter. How many small centimeter squares fit into this large square? –Pomte 00:43, 21 April 2007 (UTC)
Ah, okay. So it would be 7,000 square meters, with 1,000 square centimeters per square meter. Thank you very much Pomte! Nick.
- Not quite. 100^2 is 10,000, not 1,000, so there are 10,000 square centimeters per square meter. Gandalf61 14:32, 21 April 2007 (UTC)
Just remember it like this
1 metre = 100 cm
(1 meter)^2 = (100 cm)^2
1^2 meter^2 = 100^2 cm^2
1 meter^2 = 10,000 cm^2
202.168.50.40 01:46, 22 April 2007 (UTC)
Prime Numbers
Is (10^n)+1 always prime for all positive whole numbers?It seems to be as far as I cancalculate. If so, whose law haxe I rediscovered?
- You have demonstrated the law of laziness. We can, for example, factor 109+1 as
- Furthermore, that factor of 11 will show up whenever n is odd.
- No simple formula is known to guarantee primes, but this one fails early and easily. --KSmrqT 03:36, 21 April 2007 (UTC)
- The Fibonacci sequence has something with primes (not the actual sequence, but something that uses it). --TeckWiz is now R ParlateContribs@(Lets go Yankees!) 03:39, 21 April 2007 (UTC)
- Actually, as formula for primes mentions, there is a simple formula for primes of the form floor(A3n), where A is Mills' constant. But perhaps what KSmrq meant is that there is no simple and easily computable formula... Mills' formula is not easily computable, because it's much easier to generate primes by other means than to calculate A sufficiently accurately to use the formula. —David Eppstein 04:06, 21 April 2007 (UTC)
- I pondered what phrase to use, and decided "simple" was simplest. ;-)
- Even so, I'm sure I spent more time in answering the question than was spent in generating it. Ah, well; primes seem to hold an endless fascination for some folks. We should mention Mersenne primes, which presently have no serious competition as the largest known primes. However, these numbers, of the form 2p−1 (where p is a prime) are not guaranteed to be prime; hence the Great Internet Mersenne Prime Search (GIMPS).
- I mention the factor of 11 for three reasons. First, it demolishes the proposal by eliminating half of the candidates at one stroke. Second, it gives me another chance to illustrate the utility of ring homomorphisms from the integers to the integers modulo n, which I mentioned in response to a recent post. And third, it rewards those who know this supplemental variation of casting out nines.
- For, casting out elevens is almost as easy, and another handy check on arithmetic. Where casting out nines sums all the digits, casting out elevens alternately adds and subtracts. Consider 267583; working from right to left, we have 3−8+5−7+6−2 = −3, which is congruent to 8 modulo 11. Thus any number of the form 10…01, with an even number of zeros, is immediately seen to be divisible by 11. (It's interesting to note that the designers of ISBN-10 knew that this check catches digit transpositions, a common mistake that ISBN-13 does not guard against.) --KSmrqT 07:54, 21 April 2007 (UTC)
- Kenneth Rosen's "Elementary Number Theory and its applications" states that no polynomial in n (n a positive integer) variables generates only primes and says the proof is beyond the scope of the book. StatisticsMan 05:41, 23 April 2007 (UTC)
- Formula for primes gives a proof in three lines, but I suppose it's not quite elementary. Algebraist 16:21, 23 April 2007 (UTC)
- Kenneth Rosen's "Elementary Number Theory and its applications" states that no polynomial in n (n a positive integer) variables generates only primes and says the proof is beyond the scope of the book. StatisticsMan 05:41, 23 April 2007 (UTC)
April 22
Math Songs
I wasn't sure where to post this, and I decided the Math desk would be marginally the better choice. I know of, at the moment, three really good sources of math-based music: [1], [2], and [3]. Can anyone suggest anything else? —The preceding unsigned comment was added by Black Carrot (talk • contribs) 08:23, 22 April 2007 (UTC).
- Sorry I didn't sign that. Here's one other I didn't have a link to. [4] Black Carrot 09:23, 22 April 2007 (UTC)
- Tom Lehrer wrote a couple of math songs, but his math-related ones tend to be more rare than the rest. One of his most famous ones has its own article, New Math (song). Maelin (Talk | Contribs) 12:27, 23 April 2007 (UTC)
Cubic Functions
Is there anything analoguous to conics for higher degree polynomials (e.g. conics are to second degree polynomials as ... are to third degree polynomials)? --AMorris (talk)●(contribs) 09:07, 22 April 2007 (UTC)
- Degree 4 = quartic; degree 5 = quintic; degree 6 = sextic. Gandalf61 09:33, 22 April 2007 (UTC)
- It depends on what you expect. A degree 2 polynomial in one (or more) variables is called a "quadratic", as in the famous quadratic formula. A degree 3 polynomial is a cubic. But conics, or conic sections, are special. Every degree 2 polynomial in two variables, x and y, implicitly defines a curve in the projective plane that is a conic section. With one variable the graph of the function is always a parabola, and with three variables we speak of quadrics (or quadric surfaces).
- Curves of higher degree acquire complications. The typical cubic curve, which is nonsingular, has no parametric form, and is called an elliptic curve for historical reasons. (These curves are not ellipses!) Every real-valued elliptic curve is equivalent to either of
- by a linear transformation. Among these, the pair of curves
- have a unique status, having to do with the number 1728 (which is 123) and some very deep mathematics. (The final route to the proof of Fermat's Last Theorem involved elliptic curves in a subtle and surprisingly beautiful way.)
- The cubic Bézier curves which are so popular in computer graphics do not fall into one of these two families of elliptic curves. In fact, simply knowing that they are parametric curves tells us that they must be singular as algebraic curves. Thus somewhere on the curve a magnified view does not look like a line.
- Consider the curve with Bézier control points (−3,−9), (1,−3), (−1,−3), (3,−9). As an implicit curve, it is
- The singular point does not appear on the parametric curve; it is at the origin, (0,0). Using lines through this acnode, we can find every other curve point's parameter
- Thus we see a profound difference between degree 2 and everything higher. Bézout's theorem tells us a line will intersect a curve as many times as the degree, if we count multiplicity. For degree 2, we can fix any point on the curve and use the family of lines through it, each of which gives a second intersection point, and thus a parameterization. For degree three, we must have a "double point" — a singularity — to accomplish the same thing. And the nonsingular cubics, the elliptic curves, have extraordinary properties not shared by curves of higher degree. --KSmrqT 16:30, 22 April 2007 (UTC)
- Curves of higher degree acquire complications. The typical cubic curve, which is nonsingular, has no parametric form, and is called an elliptic curve for historical reasons. (These curves are not ellipses!) Every real-valued elliptic curve is equivalent to either of
Polynomial sequence
The generating function for the nth powers of the positive integers has the form Pn(x)/(1-x)n+1, where Pn(x) is a polynomial of degree n. In other words,
The first few polynomials in the sequence Pn are:
and the Pn polynomials satisfy the recurrence relation:
Does anyone know if there is a name for this polynomial sequence ? I have searched the polynomial sequence articles here and at Mathworld, but I haven't found this particular sequence. Gandalf61 09:29, 22 April 2007 (UTC)
- This [5] comes up on OEIS. Just skimmed it. Eulerian polynomials? --87.194.21.177 10:52, 22 April 2007 (UTC)
- Ah, yes, thank you - the co-efficients of these polynomials are the Eulerian numbers as decribed here and here ... but not, apparently, currently in Wikipedia, because "Eulerian number" redirects to Euler number, which is not the same thing. I feel an article coming on ... Gandalf61 14:24, 22 April 2007 (UTC)
- Another way to describe the g.f. of n^m is
- where the xD operator is the application of differentiation followed by multiplication with x. (xD)^m means m-times application of it. A generalization would be
- --85.179.17.199 16:10, 22 April 2007 (UTC)
- As promised, I have now created an article on Eulerian numbers. Gandalf61 16:05, 23 April 2007 (UTC)
USB symbol
Is the USB (Universial Serial Bus) symbol a mathematical symbol? Or at least resembles one? Thanks very much for your response. --Mayfare 15:27, 22 April 2007 (UTC)
- It resembles loosely both lowercase epsilon (ε) and capital sigma (Σ), used respectively to denote an infinitesimal quantity and show the process of summation. But more or less any shape can be matched to a symbol in some alphabet.…217.43.211.203 15:40, 22 April 2007 (UTC)
- Besides for looking like an epsilon and sigma, I don't think the symbol means anything other than the device can connect with triangles, squares, and circles, meaning it's made to be universal. --Wirbelwindヴィルヴェルヴィント (talk) 19:08, 22 April 2007 (UTC)
- In a certain (pointing upward) orientation, it also resembles the letter psi, which may be used for various mathematical things. It also resembles the Unicode Mathematical Operators #22D4 (points downward), #22F2 (points to the right), and #22FA (points to the left). --Spoon! 19:29, 22 April 2007 (UTC)
- Aha! It's a metro map! —Bromskloss 22:56, 22 April 2007 (UTC)
- its obviously the symbol of.... a data bus. Not anything to do with a math symbol.--Dacium 04:30, 27 April 2007 (UTC)
Quadratic Equations
If I want to find the roots of a quadratic equation with the quadratic formula, does C always need to be positive? I've noticed that if C is negative, the discriminant will be negative but we will not cover complex numbers (i) in this school unit.
For example, 2x^2 + 14x - 240 would have to be multiplied by -1 to -2x^2 - 14x + 240 = 0 to work in the quadratic formula.
Thank you very much!
Vertciel 18:48, 22 April 2007 (UTC)
- The discriminant is given by - this will always be greater than zero provided b2 > 4ac, which can be achieved for any variety of numbers. In the case of a negative c, a positive a will ensure a positive discriminant. Try for a variety of signs and magnitudes of a, b and c, and you'll see what I mean. Icthyos 19:01, 22 April 2007 (UTC)
- Indeed, there seems to be some confusion. For the given polynomial,
- we have
- Thus the discriminant is
- which is positive; no complex numbers are needed.
- If you think better with pictures than with equations, consider this: The graph of a quadratic equation is a parabola. Since x2 is always positive, the arms rise up if a is positive, and they drop down if it is negative. The effect of adding the constant c is to shift the curve higher or lower. So what does b do? It shifts the curve diagonally (both horizontally and vertically). We are trying to find where the curve crosses zero (the height of the x axis), and we have three possibilities.
- Perhaps the apex of the parabola just touches the x axis. (This is unlikely.)
- The x axis slices through both arms.
- The curve lies entirely above or entirely below the x axis.
- The discriminant is zero, positive, or negative, depending on which case we have. In an example like x2+1, the arms rise up, the curve is shifted up, and there is no diagonal shift; thus the parabola lies entirely above the x axis, consistent with a discriminant of −4.
- Teaser: A zero of x2+1 would have to be a quantity, i, that squares to −1. Since both positive and negative real numbers have positive squares, i must be something new and different. Thus we meet complex numbers, one of the most fruitful discoveries in the history of mathematics. --KSmrqT 21:20, 22 April 2007 (UTC)
- Indeed, there seems to be some confusion. For the given polynomial,
uploading of math diagrams
How to upload simple mathematical diagrams of lines and curves, etc. on the wiki page from word documents with such diagrams?--Profvk 23:22, 22 April 2007 (UTC)
- You need to export these as images (PNG or SVG, only pictures should be saved as JPEG) and Upload them before adding to the article. For any further help, just ask the guys at the Help Desk. — Kieff | Talk 23:46, 22 April 2007 (UTC)
- See Help:Images and other uploaded files for more details. And to be more precise, JPEG is a lossy compression format best reserved for natural photographs. Sharp line drawings and other graphic art are best presented in SVG format, which is not only highly efficient, but also scales cleanly to any size. The function article contains a typical example, Image:Graph of example function.svg. But as Kieff suggests, questions like this about Wikipedia itself are more appropriate to the Help Desk. --KSmrqT 02:47, 23 April 2007 (UTC)
April 23
E(max{d20+x1,d20+x2,...,d20+xn})
If n 20-sided dice are rolled, and to them are added integer constants x1 through xn, is there a general function for the expected largest modified roll? Expected smallest? Does it help if n is fixed at 2? NeonMerlin 01:36, 23 April 2007 (UTC)
I don't understand your question. Are you talking about the maximum roll of any one die in a roll of say 5 dices? 202.168.50.40 04:58, 23 April 2007 (UTC)
- Well, I guess the max is pretty obviously . The max roll for any normal die is 20 so the max roll for n dice is . You'd then add on all the x's. But, since you give absolutely no info on the x's, that is the best you can do. For all I know, . StatisticsMan 05:44, 23 April 2007 (UTC)
- I think the question is actually "If you roll n dice, and to each die you apply the appropriate modifier, which total will be largest?" And I've looked at it, and there's no nice expression in general other than a few algebraic simplifications you can make. For the two dice case, it's still tricky but I think it's possible to express it in a relatively simple function of x_1 and x_2. Still working on it. Confusing Manifestation 06:18, 23 April 2007 (UTC)
- ConMan is right: I mean the expected value of the largest of the n modified rolls. NeonMerlin 01:58, 24 April 2007 (UTC)
Okay, say you're rolling two six-sided dice for starters. Expected value is defined as
Still, it really all just depends on x_1 and x_2. If x_1 is 100 and x_2 is 5, then the expected value relies only on the first die and the second die will never come into account. Same goes if x_2 is way higher than x_1 as 1 and 2 are just labels. So, the only time it will matter is if the x_1 and x_2 are close to each other. If we have six-sided dice, then
If the difference were 5, then the lowest roll on one die would be and the highest on the other would be 6 + x_2. If x_1 is 5 higher (or more) than x_2, then all that matters is the one die.
Your question about n 20-sided die I say is pretty complicated unless you give more info. Any die which has x_i 19 lower than the max of the x_i can be taken away essentially as it would never come into play.
Then, for the die with the max value of x_i, and depending on how much higher, it'd be most likely to come up as the max die. If it's 10 higher than any other x_j, then half the time that one die is going to give the max roll and the other half the time, one of the others will.
Add to that how many dice end up being close enough. Does one die have the highest modifier, two others with a modifier 4 lower, another with a modifier 6 below the highest, six dice with modifier 10 below the highest, one hundred dice with modifier 11 below the highest, and another 18 below? It totally depends on how many of each and how close.
StatisticsMan 04:34, 24 April 2007 (UTC)
- The probability P1(k) that die number 1 has a value no larger than k is the cumulative distribution function for die 1. The value of this function is 0 for k<= x1, 1/20 for k=x1+1, ...19/20 for k=x1+19, and 1 for k>=x1+20 (for 20-sided dies). To say that that the maximum value of dies one and two is <=k is the same as saying that the value of die one is <=k AND that the value of die one is <=k. Because the two die outcomes are independent, the probability of this event is Q2(k)=P1(k)P2(k). Similarly the cumulative distribution function for the maximum of n dies is Qn(k)=P1(k)P2(k)....Pn(k). The probability that the maximum value of the n dies is exactly k is the probability density function Pmax corresponding to the cumulative distribution function Qn. This has the values Pmax(k) = Qn(k)-Qn(k-1). From the probability density function you can calculate the expectation value in the usual way (E=Sum(x p(x)). Putting the above reasoning together into a closed expression gets a bit messy, but calculating the answer for particular n and {xi} is straightforward. --mglg(talk) 22:25, 24 April 2007 (UTC)
Incidentally, the best way (that I can see) to simplify the expression is to make the following adjustments:
First, without loss of generality, assume that , ie. the modifiers are arranged in increasing order. Then, let . This allows you to pull out of the max() expression and the expectation/sum thanks to linearity. This is particularly helpful in the two dice case since the expectation then simplifies to , where the sum is over all possible values the two dice can have. Confusing Manifestation 23:43, 25 April 2007 (UTC)
- The expected value of a real-valued random variable with cumulative distribution function F equals ∫z dF(z), in which the bounds are from F(z) = 0 to F(z) = 1. If the distribution is discrete, the integral can be replaced by the sum Σ z ΔF(z), where ΔF(z) = F+(z) − F−(z), where F+(z) = limζ↓0F(ζ) AND F−(z) = limζ↑0F(ζ), and z ranges over all points where the value of F(z) makes a jump.
- Given n independent random variables v1, ..., vn whose respective cumulative distribution functions are F1, ..., Fn, the cumulative distribution function F of random variable v = max{v1, ..., vn} is given by F(z) = Πi = 1,...,n Fi(z).
- In this case, where the value of vi is observed by rolling an s-sided die with face values 1 to s and adding a given quantity xi to the face value, the jump points have the form z = k + xi for k = 1, ..., s and i = 1, ..., n. Disregarding for now the possibility of coinciding jump points for different variables, at each such jump point the value of Fi(z) jumps from Fi−(z) = (k−1)/s to Fi+(z) = k/s, so F−(z) = (k−1)/k × F+(z). Coinciding jump points can be treated as a sequence of jumps at the same value for z; the order is immaterial.
- We can now give a simple algorithm for computing E(v):
- J := ∪i=1,...,n, k=1,...,s {(k+xi, k)}
- (ev, p) := (0, 1)
- for (z, k) ← J in reverse order:
- ev := ev + z × p/k
- p := (k−1)/k × p
- end for
- The set of jump points J incorporates the values for k, which are needed in the calculation of the jump size. This set J must be traversed in order of decreasing z-values. The result for E(v) is the final value of the program variable ev. When, in the course of the computation, the value of p becomes 0, it will remain so and ev will no more change value, so the computation may then be terminated. --LambiamTalk 20:35, 26 April 2007 (UTC)
what is?
B3 X 2 - B =?
--NÓRA70.109.78.147 13:08, 23 April 2007 (UTC)
- At a guess, a homework question. If B3 is meant to represent 3 times B, which is traditionally written as 3B, then think of having three lots of "B", then doubling that, then taking away one lot of "B" and see what you get. Confusing Manifestation 22:49, 23 April 2007 (UTC)
- EXPAND{ B3 X 2 - B =? }
- (B + B + B) + (B + B + B) - B = ?
- Do the maths yourself. 202.168.50.40 23:25, 23 April 2007 (UTC)
Connections within a hypercube
Hello, helpful people of the Reference Desk:
I'm trying to understand the connections between the parts of a hypercube (checking that article, it seems that term is more general than I thought and I should specify that I'm talking about a 4-cube). If it helps, imagine that I'm trying to work out which rooms connect to which in a Crooked House of the Heinlein variety (that's not the exact problem, but it maps to the one I'm interested in). Please excuse the crude ASCII diagram, but if we consider it folded out into the form of a tesseract (each letter representing one three-dimensional cube):
A | B |/ C---D---E /| F | G | | H
then, if I've understood it right, each cube is connected to six other cubes (the "obvious" example being D) and has one cube that is on the "opposite" side of the hypercube which it is not directly connected to (in the same way that each face of a cube is connected to four of the others, but not the one opposite). As I see it, this gives four pairs of mutually unconnected "opposite" cubes: AG, BF, CE, and DH. Is that right (both in the general idea, and the specific details of which ones are opposites) or have I wrapped myself up in (four-dimensional) knots? (Google found Peter Turney's Unfolding the Tesseract for me, and I think it supports my interpretation, but the discussion gets too advanced too quickly for me to be confident.) 86.143.46.128 16:07, 23 April 2007 (UTC)
- Yes, you are right. Here is a simpler way to look at it: The points {0,0,0,0}, {0,0,0,1}, {0,0,1,0},... {1,1,1,1} (i.e., all 24=16 possible combinations of 0 and 1) define the 16 corners of a 4D hypercube. The 3D cube you get if you fix any one of the coordinates to be 0 is opposite to the 3D cube you get if you fix the same coordinate to be 1. Since there are four coordinates to choose from, there are indeed four such pairs. -- mglg(talk) 16:31, 23 April 2007 (UTC)
- Thanks! And yes, that is a simpler way of looking at it ... 86.143.46.128 17:30, 23 April 2007 (UTC)
- Perhaps if we work our way up from lower dimensions, the case of interest will be clear. Begin with a point (or vertex), all we have in 0 dimensions. Stepping up to 1 dimension, we sweep that vertex into a line segment, so that we have the original vertex, a new line segment (unit length), and a new vertex. Stepping to 2 dimensions, we sweep that line segment into a face, increasing the number of vertices and edges as we do so. We double the original edge and sweep an edge for each vertex. Is the pattern becoming clear? Stepping to 3 dimensions, we sweep the face into a solid. Tallying:
dim vertices edges faces solids 4-cell 0 1 1 2 1 2 4 4 1 3 8 12 6 1 4 16 32 24 8 1
- The entry in column n is a combination of those in the row before: column n−1 plus twice column n.
- The development of this table parallels the hypercube article. However, it also helps us understand what is connected to what. When we sweep a vertex, we create a new edge in addition to the old connections. Each edge is bounded by two vertices. Therefore a vertex in dimension d is connected to d other vertices through an equal number of edges. When we sweep an edge, we create a new face. Each face is bounded by four edges. Therefore an edge in dimension d is connected to d−1 faces and 3(d−1) edges. When we sweep a face, we create a new solid. Each solid is bounded by six faces. Therefore a face in dimension d is connected to d−2 solids and 5(d−2) faces. Finally, when we sweep a solid, we create a 4-cell. Each 4-cell is bounded by eight solids. Therefore a solid in dimension d is connected to 7(d−3) solids. For the purposes of a tesseract, we are done.
- It is convenient to place the vertices with each coordinate either 0 or 1. To get an n-cell, we freeze d−n of the coordinates. For example, to get a face (2-cell) of a cube (3 dimensions), we freeze 1 coordinate; thus we get faces x = 0 and 1, y = 0 and 1, and z = 0 and 1. This also allows us to describe the bounds of a cell. For example, the edges bounding face (1,·,·) are those fixing either y or z, namely (1,0,·), (1,1,·), (1,·,0), and (1,·,1). Similarly, we deduce that edge (1,0,·) bounds faces (1,·,·) and (·,0,·).
- You seem to want to distinguish n-cells that share an (n−1)-cell, such as adjacent sides of a square as distinct from opposite sides. You now have enough information to work this out for cubes of the tesseract, either by thinking of sweeps or by working with coordinates. Hope this helps. --KSmrqT 18:02, 23 April 2007 (UTC)
Dirichelet eta and Riemann Zeta
Hi, does any one know the proof for: η(s) = (1-21-s)ζ(s) or where i can find it?
thanks 87.194.21.177 16:09, 23 April 2007 (UTC)
- What definition are you using? Our Dirichlet eta function article gives that formula as one definition, which allows for a quick proof :-) Algebraist 16:15, 23 April 2007 (UTC)
- You could start by proving the relationship in the region Re(s)>1, where the Dirichlet series definition for both η(s) and ζ(s) converges. Then (waving hands vaguely) use analytic continuation to extend the result. Gandalf61 16:23, 23 April 2007 (UTC)
- If necessary, you could just prove it for real s>1 (and use analytic continuation again) to avoid thinking about complex exponentiation. Algebraist 09:19, 24 April 2007 (UTC)
April 24
PrefixSpan Algorithm
Hello, I have a question regarding the PrefixSpan algorithm. This algorithm can be consulted in the following paper "Mining Sequential Patterns by Pattern-Growth: The PrefixSpan Approach" by Jian Pei, Jiawei Han, Behzad Mortazavi-Asl, Helen Pinto.
My problem is with this sentence: "To avoid checking every possible combination of a potential candidate sequence, one can first fix the order of items within each element. Since items within an element of a sequence can be listed in any order, without loss of generality, one can assume that they are always listed alphabetically."
Furthermore in the definition of a prefix say that among other things a sequence A is only a prefix of B if each item of the last set of items of A is alphabetically before every missing item of the corresponding set of items in B. Then they go on how to define a suffix of a sequence given a prefix an then that a projection of a sequence database with regards to A is a the set of suffixes given A as prefix.
I don't understand how the assumption of alphabetical ordering does not result in loss of generality. For example given a database like:
a(abc)bd
a(ac)bdef
A frequent pattern with minimum support count 2 would be a(ac)bd (i.e. article a, followed by article a and c together then article b then article d. If we follow the lexicographical ordering within itemsets assumption we will fail to find this itemset since a(ac) is not a prefix of both sequences ? Or am I misreading something in the article.
Kind regards and thanks for your time.
62.48.159.19 09:27, 24 April 2007 (UTC)
Correlated random walks
Can you please include an article on correlated random walks, their definition, history and applications to date.
- Are you talking about random walks that are correlated with each other somehow, or ones that are correlated with themselves (aka autocorrelated)? If the second, then it's not a fantastic article at the moment but I suspect you'd be looking at something like an ARIMA model with appropriate parameters. For history, I should have some good references about me somewhere but I can't find them, but for applications you'd be looking at things like X-12-ARIMA and similar packages which are used for modelling a large number of time series that have some kind of autocorrelation structure, and which are in use at many statistical agencies around the word (including, I would guess, many of those listed in Category:National statistical services). Confusing Manifestation 23:36, 25 April 2007 (UTC)
Non-random number generator
Someone who wishes to remain anonymous has a Klondike solitaire card game on their computer. Probability with random card ordering would predict that each ace would appear first, second, third or fourth with equal frequency, yet their observations (made over hundreds of games) show that the ace of hearts is the last of the four aces to appear in 75-80% of games. This includes a sequence of 8 consecutive games where the ace of hearts was the last ace. Why might this deviation from probability occur? What (if it was random) is the probability of the 8 consecutive games occurring? Can the error be corrected? Seans Potato Business 17:11, 24 April 2007 (UTC)
- The probability of 8 games in a row is . However, if you ran many series of 8 games, then the probability that one of those series would have that pattern is then much higher. I'd say the program used a rather poor method for selecting pseudo-random numbers. I doubt if it can be fixed without rewriting the program. There is something you can sometimes do called "setting the random number seed", but that would likely need to be done in the program. You might want to post this on the Computer Ref Desk, too. StuRat 17:27, 24 April 2007 (UTC)
- Than chance that you'd observe more than 40 games out of 100, with AH the last of the four is 1 in thousand. It becomes 1 in million for over 47. For 75, it is virtually zero. (See Binomial distribution.) Hence the probability generator of your Klondike game is definitely biased, assuming ur observations are correct. --Hirak 99 17:45, 24 April 2007 (UTC)
- Just a quick observation, but you probably want to look at the chance of any specific ace being the last ace in 75% of the games. The reason is that you have to consider that if you were paying attention to the order aces came out you probably also would be suspicious if you noticed the Ace of Spades being last most of the time, or the Ace of Clubs or Ace of Diamonds. Therefore there are actually four possible scenarios that would have set off a red flag in your head, and you just happened to witness one of those four. The question then is what are the odds of a randomized deck delivering one of the four scenarios you would notice (which is I believe four times the probability of the Ace of Hearts specific scenario). That probability is still really, really low, but technically not quite as low as the probabilities mentioned previously. Dugwiki 23:04, 24 April 2007 (UTC)
- If they wish to remain anonymous, they should make sure the random number generator in their crypto software is better than the one in their card games. :) --TotoBaggins 17:09, 25 April 2007 (UTC)
- See clustering illusion: you may be imagining a pattern where non exists. --h2g2bob 03:50, 26 April 2007 (UTC)
April 25
Conic Section
Can someone point me in the right direction with these problems:
- How do I find the coordinates of the endpoints of the major and minor axis of the ellipse:
- Knowing that the angle of rotation is 108.43°, how do I unrotate:
?
- and
- .
- I have plugged in the prime values for x and y, and substituted 108.43° for θ. How do I get x'y' to cancel out?
Thanks -- Sturgeonman 01:03, 25 April 2007 (UTC)
- For the first part, I'd say you need to find the two angles with the maximum radius and the two angles with the minimum radius, then convert those 4 angles and radii to rectangular coords. StuRat 08:07, 25 April 2007 (UTC)
- One is trivial; the other, mistaken.
- In polar coordinate form, the endpoints you seek are the maximum and minimum values of r. Look at the denominator, and think about where sin θ achieves its extremes of −1 and +1.
- For the hyperbola given by the second equation, the center is not at the origin, nor is the rotation angle what you "know". One easy trick is to find the asymptotic directions. In the projective plane, these are the two points where the hyperbola cuts through the "line at infinity". Formally, switch to homogeneous coordinates, (x:y:w), then set w to zero. The result is 0 = 4x2−6xy+2y2, which factors as 2(x−y)(2x−y). This does not give us the center, but it does tell us the slopes, thus implying the rotation. We have two choices, the smallest one being halfway between 45° (for x = y) and 26.565° (for 2x = y), namely 35.7825°. I believe if you try this you will find that the xy term does vanish.
- Just curious; what was the source of that 108.43° angle? --KSmrqT 18:07, 25 April 2007 (UTC)
- PS: The nature of contact with the line at infinity shows us what kind of nondegenerate conic we have. A parabola is tangent to infinity, so has a double factor. A hyperbola pierces infinity in two distinct places, so has two distinct factors. And an ellipse (including a circle) does not touch infinity. This should sound familiar, suggesting the discriminant of a quadratic equation. (There's also a pretty method for finding the center, here at (12,151⁄2), using matrices.) --KSmrqT 14:46, 26 April 2007 (UTC)
Inverse of NxN Matrices Mod M (Hill cipher)
I'm looking for an efficient method to find the inverse of arbitrarily sized matrices under an arbitrary modulo. The 2x2 case is trivial and I have already implemented it. Any ideas for bigger matrices? I need this in order to write a version of the Hill cipher. The easier the method the better (I'm not keen on coding gaussian elimination). I'm coding in Ruby if that's any help (any library's i don't know of?). BrokenSegue 04:46, 25 April 2007 (UTC)
- as long as (det A, m) = 1. This is the formula given in Rosen's Elementary Number Theory and Its Applications. Though it is given in a previous section, it is referenced in the section on Hill Ciphers as the way to find the inverse of a matrix. StatisticsMan 05:12, 25 April 2007 (UTC)
- Though as noted at Invertible matrix, this will become inefficient for large matrices (not sure how large before it becomes terrible). I think Gaussian elimination is the best method known in general. Algebraist 08:18, 25 April 2007 (UTC)
- To invert a matrix by hand, I think it becomes tedious already at a 3x3 matrix. Going up to a computer, I can say that mine manages to invert a 1000x1000 matrix in about 2 seconds, but it gets much worse rapidly as you increase the size. A 10000x10000 matrix is a horror to invert, and puts my computer out of commission for half an hour at least (so I don't even try that anymore). Applied mathematicians go to great lengths to avoid inverting large matrices, often of the order of 100000 x 100000, because doing so is an operation. Indeed, they go to great lengths to avoid solving a system of equations with large matrices with Gauss elimination, (this is a considerably easier process) because of the time constraint, this is why so much effort has been used on iterative methods such as Conjugate gradients. Sjakkalle (Check!) 14:52, 25 April 2007 (UTC)
- Though as noted at Invertible matrix, this will become inefficient for large matrices (not sure how large before it becomes terrible). I think Gaussian elimination is the best method known in general. Algebraist 08:18, 25 April 2007 (UTC)
- Any general approach will require bookkeeping and nested loops. Since you insist on arbitrary modulus, not just prime, the question of invertible elements complicates matters. Computing the adjugate and the determinant requires only ring operations, not inversion, so the only potential obstacle is inverting the determinant; but if the determinant is not an invertible element of the ring, the matrix is not invertible.
- Gaussian elimination is preferred in numerical analysis for two reasons, though it typically takes the form of LU decomposition. One reason is that it can be more efficient than inversion. Another is numerical behavior. As a practical matter, we almost always include partial pivoting, permuting rows as necessary to avoid problematic inversions. For example, without pivoting we would have a problem with
- With modular arithmetic and a modulus with small factors we might be forced to use full pivoting (permuting columns as well as rows) to guarantee success. That complicates the algorithm and increases the cost. (But note that any invertible element is fine; we need not sort magnitudes.)
- My tentative suggestion is to try coding the adjugate/determinant method. If it is too complex for your tastes, I doubt you will be happy with any method. If it is too slow, then consider LU decomposition with full pivoting.
- Another alternative, depending on your circumstances, is to let a system like SAGE or PARI/GP do the inversion. --KSmrqT 16:11, 25 April 2007 (UTC)
- Ah thanks very much guys. I was hoping there was some secret mathematical method that mathematicians keep to themselves to make inversion both fast and easy. I guess I'll use the adjugate/determinant method (speed isn't so critical). One follow-up question: do I take the mod only after I've found the adjugate or do I do it as I'm calculating it? I think it's the former. BrokenSegue 19:22, 25 April 2007 (UTC)
- Of course we have a secret method, but we aren't going to give it up that easily. In answer to your question, either will work. If I'd ever programmed a computer in my life I would hazard a guess at which would work faster. Algebraist 19:38, 25 April 2007 (UTC)
- Mod as you go to keep the numbers small. If all the numbers fit in a standard integer anyway, it will be faster to mod after. As the matrix grows larger, the excessive growth is more likely. Mathematically, it makes no difference. (Ring homomorphism strikes again.) --KSmrqT 21:30, 25 April 2007 (UTC)
- Thanks everyone, you guys are great. I just got it all working. When I clean it up, I'll post it somewhere online. As an aside, what math would I take to learn about ring theory? Or does it stand on its own? I've never heard of it before. BrokenSegue
- Ring theory lives within abstract algebra. You already know a great deal about it, because the integers are the most important example, for many reasons. Other important examples are integers modulo n, as we've been discussing, and polynomials. We can add, subtract, and multiply, but not necessarily divide. Addition is always commutative; multiplication may not be. For example, square matrices of a given size form a ring with noncommutative multiplication.
- Rings are interesting as objects themselves, but they are also heavily used for other mathematics. For example, cohomology theory gives more information about topology than homology theory (its twin) because it supports the extra structure of a ring, using the cup product for multiplication. Without the multiplication we have only a group. If every nonzero element has an inverse, and the multiplication is commutative, the ring becomes a field. --KSmrqT 23:01, 25 April 2007 (UTC)
- Thanks for the mini-lecture. Sounds cool, even though I'm not sure how much of that I really understand. I'll start sifting through the ole wiki. BrokenSegue 05:37, 26 April 2007 (UTC)
- Thanks everyone, you guys are great. I just got it all working. When I clean it up, I'll post it somewhere online. As an aside, what math would I take to learn about ring theory? Or does it stand on its own? I've never heard of it before. BrokenSegue
- Ah thanks very much guys. I was hoping there was some secret mathematical method that mathematicians keep to themselves to make inversion both fast and easy. I guess I'll use the adjugate/determinant method (speed isn't so critical). One follow-up question: do I take the mod only after I've found the adjugate or do I do it as I'm calculating it? I think it's the former. BrokenSegue 19:22, 25 April 2007 (UTC)
- You might like to look at NArray a Ruby class which can solve linear equations. Searching for ruby matrix solve may turn up other suitable libraries. --Salix alba (talk) 08:11, 26 April 2007 (UTC)
Help with surds
Hi,
I can't get the formula thing to work so sqrt is a square root.
But anyway, how do you solve this surd?
If it was just a as the denominator I could do it. Also, if it was I could do it (with the difference of two squares). But I don't know how to do this. Can you please help me?My Username is... 18:39, 25 April 2007 (UTC)
- Not actually sure what you are looking for, but is it this?
- x42bn6 Talk 18:58, 25 April 2007 (UTC)
- No, I have to simplify . I know the answer is . I don't know how they get this though! Sorry about the wait, I was trying to get the formulae to come up properly. My Username is... 19:25, 25 April 2007 (UTC)
- x42bn6's comment explains how to simplify . What makes you think the answer is ? (it isn't, by the way) Algebraist 19:35, 25 April 2007 (UTC)
- No, I have to simplify . I know the answer is . I don't know how they get this though! Sorry about the wait, I was trying to get the formulae to come up properly. My Username is... 19:25, 25 April 2007 (UTC)
- x42bn6 Talk 18:58, 25 April 2007 (UTC)
Oops, I meant to write . When I do I get and you can't get this to . Sorry if I'm being thick!My Username is... 19:51, 25 April 2007 (UTC)
- I hope my editing of your tex represents what you meant (remember you use forward slashes to close html-style tags!). How do you obtain ? Algebraist 20:10, 25 April 2007 (UTC)
- Thanks for that! I meant it to say . Copying and pasting bits of other formulae doesn't work very well apparently (or not for me anyway!)My Username is... 20:12, 25 April 2007 (UTC)
- Now I'm just confused. What do you consider to equal, and why? Algebraist 20:15, 25 April 2007 (UTC)
- because cancels out the ...doesn't it?My Username is... 20:20, 25 April 2007 (UTC)
- Now I'm just confused. What do you consider to equal, and why? Algebraist 20:15, 25 April 2007 (UTC)
- Thanks for that! I meant it to say . Copying and pasting bits of other formulae doesn't work very well apparently (or not for me anyway!)My Username is... 20:12, 25 April 2007 (UTC)
, by the normal rules of multiplying fractions. Now what is ? Algebraist 20:26, 25 April 2007 (UTC)
It's 6. Isn't it? My Username is... 20:33, 25 April 2007 (UTC)
- Indeed. thus . Where have you been having trouble? Algebraist 20:35, 25 April 2007 (UTC)
- (edit conflict) So it's 2root 6 over 30 (I've given up with <math>. Which is root 6 over 15! Thanks for your help and time! I think it's just I didn't understand the basic rules properly!My Username is... 20:39, 25 April 2007 (UTC)
- Simplify , what do you get? Or, without multiplication you could simplify . Multiply that by . Root4(one) 13:42, 26 April 2007 (UTC)
Factors
How many factors do each prime number 1-100 have? 68.193.147.179 20:38, 25 April 2007 (UTC) Example: 2=? factors, 3=? factors, 5=? factors, ....
- Do negative factors count? Algebraist 20:40, 25 April 2007 (UTC)
- In any case you should probably think about the definition of a prime number. Algebraist 20:46, 25 April 2007 (UTC)
April 26
Refunding overpayments from accounts receivable
Do I need to have a W9 on file to refund money from overpayment from accounts payable? Our invoices go out with a statement on them instead of an invoice amount. This is the reason for most of the overpayments. Please respond.
Sincerely,
Vera Pichette World Courier Ground 125 Whipple Street Providence, RI 02908 401-459-0990 <e-mail removed>
- Hi,
- This forum does not give legal advice as a matter of policy -- I assume tax advice falls into the same category. Also, you may want to consider when posting questions publicly whether they might reflect poorly on you or your employer. I have removed your e-mail address for your privacy and to avoid spam (it will remain visible in the history of this page if someone wants to contact you). Tesseran 02:10, 26 April 2007 (UTC)
Dimension of orthogonal complements
It's intuitively acceptable that for vector space and subset , . For example, given a plane (dim = 2) in three-space, the complement is a line (with dimension 3 - 2 = 1).
But I'm trying to prove it to myself, if not fully rigorously, then at least with a better argument than "Well, it makes sense..." Can anybody help? Thanks. (And no, this isn't homework; this is independent study.) --Leapfrog314 02:37, 26 April 2007 (UTC)
- Well, if you just want to understand it better, think about an easy example. Take . Use the standard basis which is written as usually. Well, let be W. Then, is the set of all vectors that are perpendicular to all vectors in W. Well, since are the vectors [1, 0, 0], [0, 1, 0], it's pretty easy to see that [0, 0, 1] and its multiples are perpendicular to any vector in W. Also, since that's all that's left of not already in W, we know that . Now, the dimension of W is 2 and is 1. Of course, the dimension of is 3. StatisticsMan 03:36, 26 April 2007 (UTC)
- Alright, that helps a bit; in that case, you could pick $n$ vectors that span $V$ (with dimension $n$), $r$ of which span $W$ (which has dimension $r$)...if you performed Gram-Schmidt on these vectors, with the $W$ vectors first, it would be clear that the new $n-r$ vectors not spanning $W$ would be orthogonal to $W$, and thus would clearly span $W$ perp. Hmm... Any other ideas, anyone? --Leapfrog314 04:44, 26 April 2007 (UTC)
- There are lots of ways of doing this, all of which are basically the same. The important thing is to show that , i.e. that given any v in V, v is a sum of something in w and something perp to w. Given this, if B is a basis of W and B' a basis of Wperp, then B union B' is clearly a basis of V. Algebraist 11:38, 26 April 2007 (UTC)
- (after brief thought) and the easiest way to do that is what you suggest: take an r-element basis of W, extend to a basis of V (this is easy: just keep throwing in more vectors not in the span of what you've got until you have to stop) and Gram-Schmidt the result. Algebraist 11:43, 26 April 2007 (UTC)
- It looks like everybody has arrived at the same idea. For fun and good exercise, let's walk through an example using real cubic polynomials in x as our vector space. This is a finite-dimensional vector space of dimension four. We're all familiar with the monomial basis, 1, x, x2, x3; but to make things interesting we will take our subspace, W, to be those cubics that equal 0 at x = 0 and at x = 1. This is clearly a proper linear subspace, since sums and multiples of such cubics will have the same property. We take the inner product, ⟨·,·⟩, to be
- Our first task is to find a basis for W. In monomial form, the constant term must be zero, and the sum of the coefficients must also be zero. This suggests W is 2-dimensional (from two constraints on four dimensions), and one choice of basis might be
- It is not hard to see that x−x2 and x−x3, say, are in the span of these. Nor is it hard to see that these are independent, though not orthogonal.
- Our next task is to extend this basis with two independent choices orthogonal to these. A simple pair is
- These are easily seen to be orthogonal to the W basis and to each other, so they form a basis for the orthogonal complement of W.
- This was so simple an example that we could work intuitively, by inspection. But more formally and systematically, we know that any finite-dimensional inner product space has an orthonormal basis. (Recall that we need to augment the vector space with an inner product to define orthogonality.) That does not tell us how to find such a basis for W, but assures us that one exists. Initialize a list B with that basis. Then we take vectors v from the basis for V one by one, and test them against the span of the evolving basis, B. If v is independent of B, use the Gram-Schmidt technique to make it orthogonal to B and unit length, then append the result to B. Eventually B must grow to span V. (Simple exercise: Why?) Discard the vectors in the basis for W, and we will have created an orthonormal basis for the orthogonal complement of W. --KSmrqT 16:31, 26 April 2007 (UTC)
Log functions
Why is it that most calculators do not allow you to change the base of the log function? You only get base 10 and base e (ln). I know you can use a formula for converting to a base of ten, but why not just let the calculator have other bases? 68.231.151.161 03:48, 26 April 2007 (UTC)
- Because it's extremely easy to convert between log bases, so base 10 and e, which are more common, are the only ones that are really handy to have available right away. — Kieff | Talk 04:07, 26 April 2007 (UTC)
Because you only need at most 4 bases:
- (1) Base e
- (2) Base 10
- (3) Base 2
- (4) Base 16
Of the above, base e and base 10 are the most useful. 202.168.50.40 05:33, 26 April 2007 (UTC)
Actually, having just one base would be sufficient. If you want to calculate the -logarithm of , you are solving . Now your trouble is that your calculator does not have the -logarithm, so just convert to a form which includes , that is . Calcualtion goes as follows
- wow! The equation to the left blows my mind! It says that (Comment added anonymously by 210.49.122.80.)
So to calculate the 7-logarithm of 657 for example, just take . Sjakkalle (Check!) 06:40, 26 April 2007 (UTC)
- The reason that 210.49.122.80's mind got blown is that Sjakkalle of course meant , not . --mglg(talk) 16:01, 26 April 2007 (UTC)
I agree with the original poster – it would be nice to be able to choose an arbitrary base. I find myself wanting base 2 especially often, without really feeling like deriving the conversion formula every time. Having it built-in would also make for a cleaner notation. —Bromskloss 11:40, 26 April 2007 (UTC)
- There's several fixes to that.
- 1. if your calculator is programmable, program it in. (I'm not sure what you mean by notation...)
- 2. Train yourself. Then it wouldn't be so hard to convert, because you "know" it. Especially since you say it happens often. You are always going to have to put forth some minimal effort. There are much harder conversion formulas, be glad you don't have to learn them.
3. If you insist, by yourself a calculator with x^y functionality. Its inverse would be log_x(y), and likely the inverse function is available.- Root4(one) 13:56, 26 April 2007 (UTC)
- There is some logic in saying that the inverse function of the xy key should be logxy, but on the Windows calculator (and, I think, on other scientific calculators I have owned), the inverse function of the xy key is x1/y. This is presumably so that the key sequence X<xy>Y<=><INV><xy>Y<=> yields a result of X. Gandalf61 14:07, 26 April 2007 (UTC)
- (edit conflict) Wow I am out of practice... (Nods to Gandal61 for quickly catching my error). The inverse on Microsoft's calculator calculates the yth root of x, (the inverse of f(x) = x^y, not log_x(y) (the inverse of f(y) = x^y.) Nevermind. But if you're doing some calculation quite often, it does make some sense to practice it a bit. Root4(one) 14:16, 26 April 2007 (UTC)
- Of course if there's no inverse for x^y, how would you quickly calculate the Yth root. sheesh. Seeing how many errors I've made in the past 5 minutes I've concluded I should have had some coffee before coming here. Root4(one) 14:27, 26 April 2007 (UTC)
- (edit conflict) Wow I am out of practice... (Nods to Gandal61 for quickly catching my error). The inverse on Microsoft's calculator calculates the yth root of x, (the inverse of f(x) = x^y, not log_x(y) (the inverse of f(y) = x^y.) Nevermind. But if you're doing some calculation quite often, it does make some sense to practice it a bit. Root4(one) 14:16, 26 April 2007 (UTC)
- There is some logic in saying that the inverse function of the xy key should be logxy, but on the Windows calculator (and, I think, on other scientific calculators I have owned), the inverse function of the xy key is x1/y. This is presumably so that the key sequence X<xy>Y<=><INV><xy>Y<=> yields a result of X. Gandalf61 14:07, 26 April 2007 (UTC)
Solve an equation of 4th order
What is the solution to ax4 + bx3 + cx2 + dx + e = 0
It is for a game I'm designing and I simplified a complicated problem down to that, but can't figure out how to solve it for a general solution. Chris M. 19:46, 26 April 2007 (UTC)
- It is quite difficult, but at least can still be solved by radicals. See our article on Quartic equation. –King Bee (τ • γ) 19:52, 26 April 2007 (UTC)
- Often by the time we reach degree 4 we switch to a general-purpose method; see, for example, splitting circle method. But there are important considerations before we take such a step. One vital question, especially for game programming, is whether perhaps the polynomial is originally available in Bernstein–Bézier form; another is whether we want all roots, real roots, or only perhaps a smallest root. Thus a method like Nishita's Bézier clipping may be faster and more reliable. --KSmrqT 21:30, 26 April 2007 (UTC)
I'm looking for real roots. I'm trying to find a concrete answer anywhere in those threads, but I can't. I'm pretty good at math but I fear this may be over my head to understand completely. But if there is simply an answer I can plug into my calculation that would do the job. I do appreciate the complexity of the issue though, so if that isn't really feasible (as the article seems to imply) then any other suggestions would be appreciated.
My basic problem was to find out if a circle was intersecting a line represented by a quadratic equation. I may simplify it so that it's simply f(x) = x2 but I think it'd be neat to do it for the general. Any help would be appreciated. Chris M. 02:13, 27 April 2007 (UTC)
- You can find rational roots by using a Diophantine method (forget what it is exactly -- method used to find rational points on a sphere). —The preceding unsigned comment was added by 129.78.208.4 (talk) 05:38, 27 April 2007 (UTC).
April 27
choice function
In set theory, is it the case that the " choice function " itself is independent of any value in its range that is selected by that choice function ? In other words, is it that the choice function cannot be changed as a result of its own application? Intuitively, it would seem to be independent. But, what is the proof? 206.74.74.42 00:25, 27 April 2007 (UTC) Willie
Sums of cubes
Hi - I was mucking around with some figures and I noticed something odd - I was wondering what the proof of it was (if it's simple...):
(∑ positive integers to n)^2 = (∑ cubes of positive integers to n)
For instance: (1+2+3)^2 = 36, as does 1^3 + 2^3 + 3^3.
Thanks in advance, Grutness...wha? 01:19, 27 April 2007 (UTC)
More average than average
Here's a vaguely statistical, vaguely philisophical question. Is it possible to be more average than the average person (in terms of that person's average-ness)?--The Fat Man Who Never Came Back 01:57, 27 April 2007 (UTC)
- In a manner of speaking, I suppose. There are very few people who are the average height, average age, average intelligence, have the average income and the average wealth, etc. So, if that happens to be you, you might say you are "more average than average". This wouldn't be mathematically correct, but that's OK. This vaguely reminds me of the town where "all the children are above average". :-) StuRat 03:55, 27 April 2007 (UTC)
- You could say that if you were above 75% of the population you were above the average who are above the average (the first average being 50% the next at 75%.--Dacium 04:22, 27 April 2007 (UTC)
- Yes, but my question relates more to whether there can be an average level of average-ness... perhaps this is synonymous with the concept of standard deviation from the mean, within a group of people... but I'm not sure.--The Fat Man Who Never Came Back 05:18, 27 April 2007 (UTC)
- (edit conflict)
- I think it implies some rather different meanings of the word "average"
- usage of some type of measure or comparison of "averageness".
- an average over that measure (does that make sense?)
- the standard notion of average.
- The question is how to define the first two notions.
- I think one way to do it would be.
- Find an average point X (standard notion of average)
- Calculate a distance B of a certain point Y of interest from the average point
- Find the average distance C of all points from the average point. Is B less than C? Then Y is more average than average.
- But we didn't quite specify what the distance metric was or how we found average distances. That's more up to you I think. It would seem they ought to be related to the way the original average was calculated, though. BTW, it seems this concept is related to the concept of standard deviation. (as I see you've also noted). Root4(one) 05:28, 27 April 2007 (UTC)