WOLFRAM

Mathematics

Education & Academic

Mathematica and the Fundamental Theorem of Calculus

Most calculus students might think that if one could compute indefinite integrals, it would always be easy to compute definite ones. After all, they might think, the fundamental theorem of calculus says that one just has to subtract the values of the indefinite integral at the end points to get the definite integral.

So how come inside Mathematica there are thousands of pages of code devoted to working out definite integrals---beyond just subtracting indefinite ones? The answer, as is often the case, is that in the real world of mathematical computation, things are more complicated than one learns in basic mathematics courses. And to get the correct answer one needs to be considerably more sophisticated. In a simple case, subtracting indefinite integrals works just fine. Consider computing the area under a sine curve, which equals

Education & Academic

Arithmetic Is Hard—To Get Right

I’ve been working on arithmetic in Mathematica for more than 12 years. You might think that’s silly; after all, how hard can arithmetic be? Today we were reminded again about how hard it can be. A nasty little bug in Excel 2007 came to light, whereby the result of computing, for example, 850*77.1 is displayed as 100000: Of course, this works just fine in Mathematica: But why is arithmetic so difficult to get right?
Education & Academic

The Equations of the Bridge

I work on computational algorithms for Mathematica, and I always like to see that what I do is helpful in solving real-world problems. When I heard about the I-35W bridge collapse, I wanted to see if anything could be learned from computing the mechanics of the bridge with Mathematica. Large packages have been written for doing structural computations with Mathematica. But I wanted to start from first principles to try to understand the whole picture. A truss bridge can be thought of as a graph, with trusses as edges and joints as nodes, as in the picture here: