News for hackers. Stuff that matters.
Re:Will it rot my students' brains if they use Mathematica? by jacobolus on Sunday April 25, 2010 @12:18AM (#1292154)
Using a programming language is perfectly reasonable. The thing I have a problem with is the scam of graphing calculators in high school calculus classes: basically in the interest of guaranteeing a revenue stream for Texas Instruments, curriculum has been filled with obtuse impossible-to-symbolically-reason-about equations, which have little relevance to any of the important concepts being taught. Only a trivially small percentage of the students will ever be placed in a situation where they need to regularly use that graphing calculator or similar tools in the future (basically just engineers). The Soviet high-school-age math curriculum of a few decades ago is in my opinion (and admittedly quite limited personal experience) vastly superior to what we do in the US. Much better to aim for understanding of underlying mechanisms, and make people do real proofs (and not the bullshit proofs of “geometry” courses), instead of just punching (effectively) arithmetic into calculators.

I think banning calculators from all elementary/secondary math education would be a tremendous benefit because (a) it would improve familiarity with basic number relationships, and (b) it would force problem authors to keep the numbers reasonable, and push problems toward higher levels of abstraction, rather than simply tacking on extra digits after the decimal point. Most importantly, anyone who understands the mathematical structures and relationships involved can learn how to compute with a calculator or similar tool in about a week. Someone who only knows how to punch things into a calculator but doesn’t have a solid grasp of what it means is in a very tough spot as soon as anything slightly out-of-the-ordinary pops up.

Re:Will it rot my students' brains if they use Mathematica? by jules on Sunday April 25, 2010 @04:00AM (#1292375)
I think it would be much more valuable to learn how the algorithms inside the graphing calculator work, instead of learning how to use a calculator. Integration, differential equation solving and root finding can be programmed in just a couple lines of code. It is amazing how well these numerical methods work.

E.g. solving the differential equation y' = y from t=0,y=1 to t=1 computes exp(1):

    import math

    def simple(f,t,t1,y=0.0,dt=0.001):
      while t<t1:
        y += f(t,y)*dt
        t += dt
      return y

    def rk4(f,t,t1,y=0.0,dt=0.001):
      while t<t1:
        k1 = f(t,y)
        k2 = f(t+dt/2, y+dt*k1/2)
        k3 = f(t+dt/2, y+dt*k2/2)
        k4 = f(t+dt, y+dt*k3)
        y += (k1+2*k2+2*k3+k4)*dt/6
        t += dt
      return y

    def f(t,y): return y
      
    print "Simple:", simple(f, 0.0, 1.0, 1.0)
    print "   RK4:", rk4(f, 0.0, 1.0, 1.0)
    print "math.e:", math.e
This prints:

    Simple: 2.71692393224
       RK4: 2.71828182846
    math.e: 2.71828182846
Or perhaps Newton's method to solve x^2 = 2, solution x=sqrt(2):

    def newton(f, fprime, x=0.1, n=10):
      for i in xrange(0,n):
        x -= f(x)/fprime(x)
      return x

    def g(x): return x**2 - 2
    def gprime(x): return 2*x # derivative of g

    print newton(g, gprime)
    print math.sqrt(2)
Result:

    1.41421356237
    1.41421356237
Note that 10 iterations are enough to get all the digits that Python prints correct.

In just 13 lines of code we have tools for effectively solving any ordinary differential y' = f(t,y) equation and for solving f(x) = 0 for many functions f. Solving y' = f(t,y) where f(t,y) is a function of t alone gives us integration. E.g. integrating 1/t from t=1 to t=2:

    rk4(lambda t,y: 1/t, 1.0, 2.0)
(but there are better methods for integration than general purpose differential equation solvers)
Re:Will it rot my students' brains if they use Mathematica? by alextp on Sunday April 25, 2010 @08:00AM (#1292581)
I agree. Numeric methods have taught me far more than learning simple programmable analytic tricks.

Specially solving reccurrences and summations, which mathematica can do very well, and I will almost always make a silly mistake when trying to do it by hand.

Re:Will it rot my students' brains if they use Mathematica? by arghnoname on Sunday April 25, 2010 @10:57AM (#1292800)
Analytic tricks can help reduce a problem that is either numerically unstable or simply too big to estimate quickly into something that can be estimated in a stable or way or at all.
Re:Will it rot my students' brains if they use Mathematica? by jules on Sunday April 25, 2010 @04:47PM (#1293507)
I agree that numerical methods are not a substitute for analytic tricks, you need analytic tricks to come up with the algorithms and to understand why they work! But learning how to use a particular calculator is not important (that is what I'd like to see replaced by learning the algorithms). And even for analytic tricks it's often much more enlightening to code the algorithm. For example I learned much more by coding an algorithm for factoring an arbitrary polynomial over Q than doing any number of factorizations by hand. I don't think that many people are even aware that there is an algorithm for factoring an arbitrary polynomial. They either don't even consider it a potential algorithmic problem or they think that it might be impossible to write an algorithm to solve it.
Re:Will it rot my students' brains if they use Mathematica? by giardini on Sunday April 25, 2010 @10:45AM (#1292785)
Did Russian elementary and middle schools indeed require that students "do real proofs (and not the bullshit proofs of “geometry” courses)"? If so, what was the failure rate of students?

Secondly, what's "bullshit" about the proofs of "geometry" courses? And why do you put "geometry" in quotes?

Always requiring proofs in elementary and middle school is inappropriate for many reasons. I'll give a few. There's hardly sufficient time to demonstrate and exercise the mathematics as it is. Secondly, learning to do proofs properly are important only for those who will become academic mathematicians at universities.

The demonstration of proof in geometry class is both elegant, precise and appropriate.

Re:Will it rot my students' brains if they use Mathematica? by jacobolus on Tuesday April 27, 2010 @09:24PM (#1300405)
> learning to do proofs properly are important only for those who will become academic mathematicians at universities.

Learning how to motivate and explain mathematical relationships and structures is essential for anyone who plans to work with them later (or frankly anyone who plans to be an informed citizen). Without a demonstration of such ability to explain on students’ part, I doubt that any “mathematics” has in fact been learned.

Normal 14-year-olds are plenty capable of understanding the construction of straightforward mathematical arguments.

> demonstration of proof in geometry class is both elegant, precise and appropriate.

You show me a widely used high school geometry book that isn’t completely full of time wasting banality and pointless over-strict over-regimented rules for students to follow, and I’ll be amazed.

Re:Will it rot my students' brains if they use Mathematica? by dget on Sunday April 25, 2010 @01:36AM (#1292233)
While I agree that being able to press forward into abstraction is more valuable than trying different permutations of the same problem, I do think the calculator (or at least a function it serves) has some use.

In particular, it lets you, when first introduced to a topic, play around with it, and get past the hump of "Really? Is that true?" I liked my calculator in high school for letting me experiment. I think that today, though, something like Wolfram Alpha works just as well for that. I do think there's a place for it in education, though.

Re:Will it rot my students' brains if they use Mathematica? by jacobolus on Tuesday April 27, 2010 @09:18PM (#1300395)
> it lets you, when first introduced to a topic, play around with it

This is not how students are taught to use calculators. I agree with you though; Maple, Mathematica, or (say) Python is much better at this than any graphing calculator.