
ea1d9a76670dd3f151921d87d81c146b.ppt
- Количество слайдов: 31
Computer algebra systems, mathematical representation, and the DLMF Richard Fateman, Bruce Char, Jeremy Johnson University of California, Berkeley Drexel University, Philadelphia National Institute of Standards and Technology DLMF Seminar Series, November 6, 2000 Computer Algebra and DLMF
Desiderata for the Digital Library of Mathematical Functions Traditional usage l New modes of interaction l – Examples l New ambitions Computer Algebra and DLMF 2
Non-digital tradition: Finding Out Stuff l l l Individually owned reference works Access to libraries’ references works Access to colleagues by letter, phone, email Paper and pencil exploration Numerical experimentation Computer Algebra and DLMF 3
Wolfram Research’s Special Functions site: 3 versions Huge posters l Interactive web site/ Mathematica notebooks l Printed form (or the equivalent PDF) l Computer Algebra and DLMF 4
The posters Computer Algebra and DLMF 5
The web site (here, the Arcsin page) Computer Algebra and DLMF 6
WRI’s Categories/ Some Subcategories primary definition specific values general characteristics series representations generalized power series at various points q-series exponential fourier series dirichlet series asymptotic series other series integral reprsentations on the real axis contour integrals multiple integral representation analytic continuations product representations limit representations continued fractions generating functions group representations differential equations difference equations transformations addition formulas etc operations integral transforms identities representations through more general functions relations with other functions zeros inequalities theorems other information history and applications references Computer Algebra and DLMF 7
Click on “Series Representations”… Computer Algebra and DLMF 8
This is not very useful l l l These are blurry pictures of math formulas. The most plausible next step seems to be to copy them down on paper and check by hand. There is a possibility of making typos or fresh algebra mistakes. The notation might be different from what you are using. Sparse (or no) info on singularities, regions of validity. To run some numbers through, you need to write a computer program (Fortran? Matlab? C++? ) Computer Algebra and DLMF 9
Notebook form (I) Input form Arc. Sin[z] == z^3/6 + z + (3*z^5)/40 + [Ellipsis] == Sum[(Pochhammer[1/2, k]*z^(2*k + 1))/((2*k + 1)*k!), {k, 0, Infinity}] == z*Hypergeometric 2 F 1[1/2, 3/2, z^2] /; Abs[z] < 1 One could imagine that a “system independent” language such as proposed by the Open. Math consortium would replace this language. Note however that agreement on the semantics of [Ellipsis] would be difficult. Computer Algebra and DLMF 10
Notebook form (II) Displayed form (one version) In reality, Mathematica does not look quite as good as this in the interactive mode. Computer Algebra and DLMF 11
Notebook form (III) Te. X form {Condition}(arcsin (z) = {frac{{{Mfunction{z}}^3}}{6}} + z + {frac{3, {z^5}}{40}} + ldots = Mfunction{sum}_{k = 0}^{infty } {frac{Mfunction{Pochhammer}({frac{1}{2}}, k), {{Mfunction{z}}^{2, k + 1}}}{left( 2, k + 1 right) , k!}} = Mfunction{z}, Mfunction{Hypergeometric 2 F 1}( {frac{1}{2}}, {frac{3}{2}}, {z^2}), Mfunction{Abs}(z) < 1)) Useful in case you wanted to paste/edit this into another paper, using Mathematica Te. X macros. Computer Algebra and DLMF 12
Computing Inside the Notebook How good is the 3 -term approximation at z= ½ ? Arc. Sin[z] == z + z^3/6 + (3*z^5)/40 +. . . Pi/6 == 2009/3840 +. . . /. z -> 1/2 Surprised? N[ Pi/6 == 2009/3840 +. . . ] 0. 523599 == 0. 523177 +. . . N[ Pi/6 == 2009/3840 +. . . , 30] 0. 52359877559829887307710723055 == 0. 5231770833333333333 +. . . Computer Algebra and DLMF 13
Simplification Inside the Notebook In[30] : = z* Hypergeometric 2 F 1[1/2, 3/2, z^2] Note: this is how Mathematica interactive output looks. This should be the same as Arc. Sin[z] for |z|<1. And yes, z/Sqrt[z^2] is not the same as 1. Computer Algebra and DLMF 14
All commercial computer algebra systems (CAS) have essentially the same notebook paradigm l l l l Macsyma Maple Mathematica Axiom Mu. Pad Scientific Word / Maple Derive Computer Algebra and DLMF 15
Advice on coding a reference chapter Computer Algebra and DLMF 16
What about legacy “knowledge”? Can we convert from scanned text? Example from integral table l l In practice, we can do some parsing using OCR if we know about the domains. But in general, we cannot read “with understanding”. Computer Algebra and DLMF 17
What about using La. Te. X as source and then converting to Open. Math/ CAS? Generally speaking: not automatically Te. X does not distinguish semantically between 1*2*3 and 123. Or between x cos x and xfoox. It has no notion of precedence of operators Gradshteyn and Rhyzik, Table of Integrals and Series (Academic Press) was re-typeset completely in Te. X TWICE, because the first version did not reflect semantics. Math. ML, XML, and Open. Math are inadequate. Computer Algebra and DLMF 18
Using Open. Math as original source is pretty much out of the question. Intent is to code: x cos x <OMOBJ> <OMA> <OMS cd = "arith 1" name="times"/> <OMV name="x"/> <OMA> <OMS cd="transc 1" name="cos"/> <OMV name="x"/> </OMA> </OMOBJ> Computer Algebra and DLMF 19
Using Math. ML as original source is pretty much out of the question, too. <math> <msqrt> <mfrac> <mrow><mn>2</mn><mi>π </mi></mrow> <mrow><mi>κ </mi></mrow> </mfrac> <mfenced open="(" close=")"> <mn>1</mn> <mi>− </mi> <mi>β </mi> <msup> <mrow><mn>2</mn></mrow> </msup> <mi>/</mi><mn>2</mn></mfenced></msqrt></math> Computer Algebra and DLMF 20
What can a CAS do better? • Semantics for what makes sense to the CAS is immediate. • Presentation for what doesn’t make sense to the CAS • Advantage: There is an immediate computational ontology • Immediate syntactic disambiguation • Easy translation into Math. ML for display • Easy translation into Open. Math, if anyone else cares. Computer Algebra and DLMF 21
What about using Java Applets? l Pro: – an applet provides more intimate interaction with a user. • Examples from Math Forum … l Con: – – – Only Java-enabled clients can use such applets. Java standardization is problematical High quality numerical software in Java? Symbolic computation in Java? Poor access to underlying computer. Computer Algebra and DLMF 22
What about Server Side software? l Pro: – arbitrarily powerful – could be huge database and super-fast computer – always up-to-date – controlled by validation team? – Can collect / re-distribute new data Computer Algebra and DLMF 23
What about Server Side software? l Con: – Risk/cost of computation at server – Communication requirement • Cost • Connection reliability Computer Algebra and DLMF 24
What about no software? l Pro: – You can “run” DLMF without a computer – You can work on a desert island l Con: – Anyone with a computer or electricity will be disappointed Computer Algebra and DLMF 25
What about only browser software? l Pro: – You can “run” DLMF on an appliance ($300) l Con: – Loss in the marketplace of ideas • In some respects it will suffer from comparison with software, some of which is free today • Students who are used to (say) Mathematica will use other resources, even if less authoritative Computer Algebra and DLMF 26
What about numeric-only software? l Pro: – You print numeric tables as needed l Con: – Symbolic data is endlessly tabulated instead. etc Computer Algebra and DLMF 27
What about symbolic software l Now we can consider including algorithms for – – – trig(n/m ) Indefinite integrals (replacing 10 -20, 000) Summation, Limits Definite integrals (a challenge still) Implicit application of identities, reduction of argument or order by recursion, etc. – Generation of any number of terms in series – Expansion in Chebyshev or other polynomials – Exact arithmetic or “bigfloat” arithmetic Computer Algebra and DLMF 28
A challenge: Include a CAS in DLMF Free Macsyma (c. 1982) l (buy) Commercial system l – Macsyma, Maple, Mathematica, Axiom … alternatively l Require the user to have a CAS separately (like requiring a Fortran compiler to use GAMS) Computer Algebra and DLMF 29
What do we want? What can we attempt? l l l Exhaustive hierarchical hyperlinks to everything known Human readable form Computer usable form + ALGORITHMS Searchable form /Unique identifiers formulas Provenance of information Annotations from other users Corrections current or past Cross-reference hyperlinks to all of mathematics Applications A bridge across paper/pencil computer gap A tireless, accurate and efficient robot to help us 30 Computer Algebra and DLMF
Computers do more than arithmetic Many persons who are not conversant with mathematical studies imagine that because the business of [Babbage's Analytical Engine] is to give its results in numerical notation, the nature of its processes must consequently be arithmetical and numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine its numerical quantities exactly as if they were letters or any other general symbols; and in fact it might bring out its results in algebraic notation, were provisions made accordingly. -- Ada Augusta, Countess of Lovelace, (1844) Computer Algebra and DLMF 31
ea1d9a76670dd3f151921d87d81c146b.ppt