Thursday, November 10, 2011
Saturday, August 6, 2011
Friday, June 17, 2011
Randomness works as expected.
http://www.rpscontest.com/authorSearch?name=Jad+Nohra
If only I could find the right prime for each opponent hahahaha, or the right place to start in sqrt(2).
Of course genius Tom is smarter:
http://www.rpscontest.com/entry/110017
If only I could find the right prime for each opponent hahahaha, or the right place to start in sqrt(2).
Of course genius Tom is smarter:
http://www.rpscontest.com/entry/110017
Sunday, May 22, 2011
Saturday, May 21, 2011
Prediction about my future child's diary.
"Dear diary.
Today he must be going crazy, he said I can celebrate my birthday every week! if I do the same for 2, it took me all day and I am at 1.41421356237309504880168872420969807856967187537694807317667973799073247846210703885038753432764157273501384623091229702492483605585073721264412149709993583141322266592750559275579995050115278206057147010955997160597027453459686201472851741864088919860955232923048430871432145083976 but I must be really really close because 76 is the year my mom was born"
Monday, dad said we would go buy new tennis shoes if I find the one number that multiplied by itself, gives 9, by trial and error using multiplication, I found it very fast and I found nice shoes as well.
Tuesday, he said we would go buy a new chess board if I would do the same for 102.2121, it was more difficult but the result was the month and day of my birth, I liked that.
Today he must be going crazy, he said I can celebrate my birthday every week! if I do the same for 2, it took me all day and I am at 1.41421356237309504880168872420969807856967187537694807317667973799073247846210703885038753432764157273501384623091229702492483605585073721264412149709993583141322266592750559275579995050115278206057147010955997160597027453459686201472851741864088919860955232923048430871432145083976 but I must be really really close because 76 is the year my mom was born"
Sunday, May 15, 2011
Book of Proof.
We like it because it is geared at exactly our goal and requires little to no prerequisites.
We have been working on it in the past months quite slowly because of some personal things that needed attention, but now I am back and we are at Chapter 5.
It has not been a very difficult book for now, but it has been perfect at showing us the edge of how we currently think and how to extend it, formalized proof 'techniques' (which does not replace the need for or ), along with confidence in formal proof writing.
The book is not to be confused with the famous 'Proofs from the Book' ! we definitely do not have what it takes to tackle that one yet, but if at some point we do, we will see it as success of our project.
More good news: We have somebody (a colleague Technical Artist) who decided to join us and has been catching up starting at week 1. Unfortunately, we have not been commenting on his insightful posts, but that is the price of starting late :). We do have verbal discussions at work though...
I conclude with a Frankenstein of a proof I made, which has a much more elegant alternative found by Tom. It is a nice example of two different ways of proving the same thing, how the use of properties is often crucial to write elegant proofs, how I am using my 'debugging the truth' technique, how to be patient, how not assume that if you cannot see the path right away you will not be able to find it at all, and how you can learn from failed proofs instead of throwing the towel.
Friday, April 29, 2011
Epsilon in $
"In the aluminum can industry, the thickness of the top of the pop-top cans has some physical limitations. It must be (say) not be thicker than 0.4mm, or else the poptop mechanism
may not work (many of us knows this from first hand experience). It must not be thinner than 0.3mm, or else the internal pressure may cause spontaneous explosion. Hence, we might tolerance this thickness as 0.35 ± 0.05mm. Now, if manufacturing processes were more reliable, and our ability to assess tolerance were more accurate, we might be able to tolerance this thickness as 0.32 ± 0.02mm. Such a change would save the aluminum can industry multi-millions of dollars in material cost each year".
"On 4 June 1996, the maiden flight of the 8 Ariane 5 launcher in French Guiana ended in self-destruction. About 40 seconds after initiation of the flight sequence, at an altitude of about 3700 m, the launcher veered off its flight path, broke up and exploded. A report from the Inquiry Board located the critical events: “At approximately 30 seconds after lift-off, the computer within the back-up inertial reference system, which was working on stand-by for guidance and attitude control, became inoperative. This was caused by an internal variable related to the horizontal velocity of the launcher exceeding a limit which existed in the software
of this computer. Approximately 0.05 seconds later the active inertial reference system, identical to the back-up system in hardware and software, failed for the same reason. Since the back-up inertial system was already inoperative, correct guidance and attitude information could no longer be obtained and loss of the mission was inevitable.”
The software error began with an overflow problem: “The internal SRI software exception was caused during execution of a data conversion from 64-bit floating point to 16-bit signed integer value. The floating point number which was converted had a value greater than what could be represented by a 16-bit signed integer. This resulted in an Operand Error. The data conversion instructions (in Ada code) were not protected from causing an Operand Error, although other conversions of comparable variables in the same place in the code were protected.”
Saturday, March 5, 2011
Epsilon-Delta level up.
Me and Tom had a really good understanding of limits and continuity already, much better than we ever had before starting this project, but the FTC pushed as again the limits of our models, so we went back digging and getting an even deeper understanding.
Here is a part of my newest conclusions, as usual the full discussion is at: https://sites.google.com/site/77neuronsprojectperelman/weeks/week-19---5-6-proofs-ftc1-2
- Many seem to agree that the epsilon-delta definitions are annoying, This can be soon both at Karl's calculus page or on mathcs.org
- "
Does that delta-epsilon method that we have been through a bunch of times now seem like a pain in the butt? Mathematicians are, by their nature, a lazy lot. If they can get away with doing some pain-in-the-butt operation just once and thereby come up with some easy and useful rule, then that's what they'll do. And once they know the rule to be true, they'll use it every time instead of the pain-in-the-butt method. Not only does the rule make life easier, but without such rules, mathematics would be so thick with undergrowth as to make it virtually impossible to understand."
"This, like many epsilon-delta definitions and arguments, is not easy to understand."
- The fact that infinitesimal calculus was heavily supported by Newton and Leibniz, tells me again, that the classical definition of limits simply does feel annoying and people tried to find 'better' ways.
- At the same time, based on Bishop, they are common sense, so there must be a way to understand why they are the best way to describe what they do describe.
I went through Karl's Calculus pages again, the number system and limits parts. I am starting to live revising things even more. Things become clearer every time I read them, even if it is the same text.
I had a slight change of mental model after I did this, I will try to describe it.
Without thinking strictly about functions, limits are interesting places that really are related to a computation that is in seemingly impossible at infinite precision, at least at first sight.
They involve interesting places involving infinities, like the integral being a sum of an infinite large count of infinitely small numbers, or in a sequence of converging quantities, where we know we can get as close as we wish to some quantity yet to be found, or in derivatives, where we want to know if we can get as close as we like to some quantity to be found, starting with the ratio of 2 infinitely small quantities.
All interesting places.
Another point is that limits are about a relationship, the relationship between a domain (input), a range (output) and a function (a computational algorithm). I am finding it useful to visualize each of these separately instead of as a curve. The idea is that is that you take a piece of the domain, which is continuous by the very fact that we are dealing with reals and have a density (to be discussed!), and then taking at the piece of the range that the algorithm produces, again luckily, the reals make it even possible for that piece to be 'continuous' because the reals are closed under the operators found in the function, and check that piece of range out.
Is it connected just like the piece of domain is? is it not?
This is related to one other important point, it is not good to think of this as walking along the domain in some direction and looking at the range, specially not when we talking about limits around a specific point.
When we do this, the focus is on the point, so we start from that point in the domain and expand out, in the range, we start at the point's output and expand out, it is a subtle but important difference, specially that it made me realize how mixed together the multiple kinds of continuity in my mind. I always used to think that a function being continuous in calculus means continuous at every point, and whenever I was confronted with having to use this, I started thinking about some kind of induction logic to show that continuous at every point made all the points somehow connected. But there is also uniformly continuous, continuous at every point but not uniformly continuous, etc... "But first, let me answer a few questions that curiosity may be stuffing into your head at this very moment. In the example of u(x) we saw a function that was continuous everywhere except at one point. Is there a function that is continuous everywhere except at several points? Yes. Is there one that is continuous everywhere except at infinitely many isolated points? Yes. Is there one that is continuous nowhere at all? Yes. Is there one that is continuous only at a single point? Yes. Is there a function that is continuous everywhere yet cannot be graphed? Yes. And later on I shall give you examples of all of these. Click here if you want to skip ahead and see this optional material right now. Or you can continue reading and you will get to it eventually."
I have done some introspection and I came to some conclusions about what made me uncomfortable about epsilon-delta definitions.
Although I really did understand them they still felt strange in the sense that one would think that there must be a better, nicer, more usable way to express this, something that can be manipulated easily like algebra.
But after giving this some deep thought I came out even more convinced of Bishop's argument that it is common sense,
- They are a relationship between domain and range
- The relationship is TOTALLY dependent on the function, the algorithm that maps domain to range
This means, there is no general lazy way of having limits that solve themselves using mechanical manipulation, because it DEPENDS on the operator, this made me coin one term that I have been noticing the more I went into theory be it math, computer science, solving problems at work ... limits will always be in the category: among other categories.
The problem can be reduced to having to FIND a relationship between epsilon and delta that satisfies some constraints, or FIND a counter example. Like all other 'inverse' problems, where we know the goal but the path is still to be found, it is also in the category: .
Those are 2 uncomfortable categories, they do not allow for laziness, impatience, or lack of intuition and very solid understanding. It is a game...
Those are 2 uncomfortable categories, they do not allow for laziness, impatience, or lack of intuition and very solid understanding. It is a game...
But once this had crystallized in my mind like this, it suddenly began to feel much more comfortable.
Also, thinking about it like this, separating domain and range, looking at them separately, and looking at the problem in terms of sequence convergence for one point, started to convince that the epsilon-delta is the best definition because it does say in math exactly what we are saying.
I still have to wrap my investigate EVT and MVT and see how they are related to point continuity, uniform continuity, continuity in calculus. This will be the last piece of a level up.
I now see MVT and EVT as THE calculus formal tools that stem from the essence of epsilon-delta and can luckily be used instead of epsilon-delta in some cases to alleviate the need for hairy statements.
It is like this: you can build a basic airplane from pieces of metal and fuel, but if you are planning a war campaign you do not want to be planning on the level of detail of pieces of metal and fuel, you just start with airplanes, otherwize, while still possible, it becomes very hard very fast, ah, theorems are great building blocks, reducing everything to axioms will trash the caches of our tiny brains very fast. "
Not only does the rule make life easier, but without such rules, mathematics would be so thick with undergrowth as to make it virtually impossible to understand.""
Saturday, February 26, 2011
Monday, February 21, 2011
Bigfoot update: Skeleton semantics, Footplant WIP.
The first thing I added was not animation related, my UI library did not support multi-sampling when rendering 3D to textures, now it does, and all my skeletons look happier.
On the animation side, I added some skeleton semantic detection code. Before, the skeletons were only analyzed for branches, chains of bones with one child only. Now it also find symmetries between branches, in the beginning of the video you can see how it detects that the left and right limbs are symmetrical. The next step is to give it some human skeleton knowledge, so that it automatically figures out what is a head, a foot, a leg, etc... The point of this is that it would enable running the code on large mocap databases without the need for human annotation for purposes like machine learning.
The other new feature which is still very much work in progress is footplant detection. While seemingly innocent, it can be quite tricky to get this right. Mocap is noisy and I also want to support the more general case of 'support contact', where for an animation of an athlete hanging on a bar per example, the contact points with the bar would be detected, or for an unrealistic animation of a martial arts kick after taking a few steps on a vertical wall, the steps on the wall would be registered as well. This needs a different technique than simply foot height. I am researching this slowly when I find myself needing a break from Mathematics and want to do something instantly gratifying.
In the video, green spheres are generated when there is a local minimum in joint height, blue ones when there is a local minimum in joint velocity and white for both.
You can see lots of them firing during footplants. I tried to filter the signals and that did improve the detection, but this is only the beginning, it needs to get much better.
Saturday, February 19, 2011
1 = 2, Q.E.D
Tom and me came up with this nice contraption while analyzing calculus proofs, can you figure out what is wrong with it? you can reply on mathbin at: http://mathbin.net/59026
Friday, February 18, 2011
Is this 'limit replacement' property trivially true?
Thursday, February 17, 2011
Microscopically intuitive FTC#1, take 2.
Last week, I added a small paragraph at the bottom of my Fundamental Theorem of Calculus proof attempt, trying to cast an intuitive view on the theorem,
based on my observation that, when focusing on one tiny interval, proving the FTC and understanding it is intuitive.
The paragraph was rushed and did not contain a much needed figure, therefore when I showed it to Tom he could not make sense out of it although I thought it was a really nice insight.While analyzing some FTC proofs, I became even more aware of how useful this intuition was.
I also become aware that some proofs simply require one to work out each detail of their intuition rigorously and patiently and not much more.
I decided to take the time to polish my insight, and see if I can manage to explain it better.
One thing I realized is that it takes it quite an amount text to explain even the simplest ideas if ones wants to do it right...
Limit over an interval
We are analyzing several FTC proofs to gain some insights. For now it seems all of them need analysis to be stated with enough detail to be convincing.
In this proof, I stumbled upon an assumption that can be reduced to claiming that this statement is true:
As usual, this is intuitively very true, the interval vanishes, leaving the 'sup' to act on only 'one point' if f is continuous. But that is no proof.
I have tried to detail this a bit more to see if I can prove it, the main idea behind my proof is: Courage.
I have found courage to be an essential component across many proofs and bold inventions in mathematics.
I am not sure how good it is, it feels pretty convincing, but there are 2 spots where it needs more detail, and I suspect that for these spots, there is an inescapable need for analysis (luckily we will be tackling that in the foreseeable future).
I have found courage to be an essential component across many proofs and bold inventions in mathematics.
I am not sure how good it is, it feels pretty convincing, but there are 2 spots where it needs more detail, and I suspect that for these spots, there is an inescapable need for analysis (luckily we will be tackling that in the foreseeable future).
.
Tuesday, February 15, 2011
Sunday, February 13, 2011
Nested limits technicality
The last two weeks, we have been dealing with the Fundamental theorem of calculus and it's proofs. Both me and Tom created proofs that hang on annoying technicalities and because of that they do not hold.
One of the problems would be solved if we could prove an innocent statement about nested limits.
I have proven it in the following document, but this proof only holds if f is continuous, which is not the case in our proofs, I will look some more.
The proof does seems trivial, but we are realizing more and more the importance of the tiniest details in the relationships between continuousness, differentiability, integrability, and it is not always clear, specially in elementary calculus books where proofs are given a flimsy and vague treatment, we seem to be heading straight into analysis whether we like it or not (and we do!!)
Here is the same tiny proof as a pdf: http://jadnohra.net/release/math/nested_limits.pdf
Thursday, February 10, 2011
Friday, February 4, 2011
Fundemental Theoreom of Calculus version 1
Thursday, February 3, 2011
Fundemental Theoreom of Calculus version 1, a perspective.
Sunday, January 30, 2011
The extravagant burial of super-star Leibniz.
"Although today we recognize his contributions to be of outstanding importance, he died essentially neglected, and only his secretary attended his burial." (http://www.math.nmsu.edu/~history/book/leibniz.pdf)
Another interesting tidbit, the crucial importance of a mentor:
"In 1672 Leibniz was sent to Paris on a diplomatic mission, beginning a crucially formative four-year period there. Christian Huygens (1629–1695), from Holland, then the leading mathematician and natural philosopher in Europe, guided Leibniz in educating himself in higher mathematics, and Leibniz’s progress was extraordinary"
Feels like the equivalent of a one on one MsC in higher mathematics.
Yet another interesting piece of information, which underlines how everything is so simplified and post rationalized in a way that a lot of useful information is lost, is the fact that the now 'obvious' 'Fundemental Theoreom of Calculus' originally came from a publication by Leibniz (ignoring the Leibniz/Newton debate) called "Supplementum geometriae dimensoriae, seu generalissima omnium tetragonismorum effectio per motum: similiterque multiplex constructio lineae ex data tangentium conditione " or in English "More on geometric measurement, or
most generally of all practicing of quadrilateralization through motion: likewise many ways to construct a curve from a given condition on its tangents" publish in the scientific journal "Acta Eruditorum"
Yes, he called it 'a supplement' ... please teach the history of math!
Which brings me to the find of the month:
http://www.math.nmsu.edu/~history/ is a project that has a mission statement this is SO much in line with our attitude towards mathematics, and they even have books, stumbled upon it while reading about Leibniz.
Mission statement: "Our journey towards utilizing original texts as the primary object of study in undergraduate and graduate courses began at the senior undergraduate level. In 1987 we read William Dunham's ..."
.
Thursday, January 27, 2011
66 Points to score your shooter AI.
I present a table that tries to capture the amount of AI sophistication in current shooters.
It is based on my experience, conversations with AI programmers, reviews, user comments and gameplay videos.
The points are roughly sorted by difficulty of implementation with current standard techniques.
It has been laying on my disk for quite some time waiting for a proper article for which I am never finding the time, so I finally gave up and decided to release it in hope for it to be useful even in this summarized table format.
Thursday, January 20, 2011
The plagiarize series - Jan C. Willems - In Control, Almost from the Beginning Until the Day After Tomorrow
http://stochastix.wordpress.com/2011/01/15/nihilism-and-theoretical-engineering/
http://homes.esat.kuleuven.be/~jwillems/Articles/JournalArticles/2007.2.pdf
http://homes.esat.kuleuven.be/~jwillems/Articles/JournalArticles/2007.2.pdf
"The work involved in preparing publications comes for a large part at the expense of time to think. In science, more writing goes together with less reading. The sheer number of publications makes it also very difficult to get acquainted with, and evaluate a new idea.I miss the emphasis on breadth and depth, on quality rather than quantity, on synthesis of ideas, on debate and scrutiny rather than passive attendance of presentations, and on reflection rather than activity.Sure, euphoria bears creativity, and skepticism paralyzes. However, questioning and criticism is an essential part of science. I have seen too many high profile areas collapse under their own weight: cybernetics, world dynamics, general systems theory, catastrophe theory, and I wonder what the future has in store for cellular automata, fractals, neural networks, complexity theory, and sync."
Monday, January 17, 2011
Sunday, January 16, 2011
The plagiarize series - EWD1036
what is an EWD: "Dijkstra was known for his habit of carefully composing manuscripts with his fountain pen. The manuscripts are called EWDs, since Dijkstra numbered them with EWD, his initials, as a prefix. According to Dijkstra himself, the EWDs started when he moved from the Mathematical Centre in Amsterdam to the Technological University (then TH) Eindhoven. After going to the TUE, Dijkstra experienced a writer's block for more than a year. Looking closely at himself he realized that if he wrote about things they would appreciate at the MC in Amsterdam his colleagues in Eindhoven would not understand; if he wrote about things they would like in Eindhoven, his former colleagues in Amsterdam would look down on him. He then decided to write only for himself, and in this way the EWD's were born. Dijkstra would distribute photocopies of a new EWD among his colleagues; as many recipients photocopied and forwarded their copy, the EWDs spread throughout the international computer science community. The topics were computer science and mathematics, and included trip reports, letters, and speeches. More than 1300 EWDs have since been scanned, with a growing number transcribed to facilitate search, and are available online at the Dijkstra archive of the University of Texas.[6]"
EWD1036 partially explains (pages 4,5) why we started at calculus :) Thank you Mr. Dijkstra!
Also of note:
"Computer science as taught today does not follow all of Dijkstra's advice. Following Dijkstra's earlier writings, the curricula generally emphasize techniques for managing complexity and preparing for future changes. These include abstraction, programming by contract, and design patterns. ....."
I wonder how that plays with the whole OOP vs. DOD topic.
Thursday, January 6, 2011
While doing some basic calculus exercises, I bumped into proving the expression below, that shows that the (Riemann) definite integral of x2 is independent of the choice of sampling number.
This is expected, but it is nevertheless very impressive how elegantly the algebra works out when get down to it, wow.
Tuesday, January 4, 2011
The plagiarize series - Felix Klein - Elementarmathematik vom höheren Standpunkte - 1908
...
"I can characterize its standing most clearly perhaps, by the somewhat paradoxical remark that anyone who tolerates only pure logic in investigations in pure mathematics must, to be consistent, look upon the second part of the problem of the foundations of arithmetic, and hence upon arithmetic itself, as belonging to applied mathematics."
...
"With the construction of the calculating machine Leibniz certainly did not wish to minimize the value of mathematical thinking, and yet it is just such conclusions which are now sometimes drawn from the existence of the calculating machine. If the activity of a science can be supplied by a machine, that science cannot amount to much, so it is said; and hence it deserves a subordinate place. The answer to such arguments, however, is that the mathematician, even when he is himself operating with numbers and formulas, is by no means an inferior counter-part of the error-less machine, "thoughtless thinker" of Thomae; but rather, he sets for himself his problems with definite, interesting, and valuable ends in view, and carries them to solution in appropriate and original manner, He turns over to the machine only certain operations which recur frequently in the same way, and it is precisely the mathematician - one must not forget this - who invented the machine for his own relief, and who, for his own intelligent ends, designates the tasks which it shall perform.
Let me close this chapter with the wish that the calculating machine, in view of its great importance, may become known in wider circles than is now the case. Above all, every teacher of mathematics should become familiar with it, and it ought to be possible to have it demonstrated in secondary instruction."
...
Subscribe to:
Posts (Atom)