~ubuntu-branches/ubuntu/karmic/maxima/karmic

« back to all changes in this revision

Viewing changes to interfaces/emacs/imaxima/imath-example/testcase.txt

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2009-07-13 15:38:41 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090713153841-gtux06oun30kuuo7
Tags: 5.17.1-1ubuntu1
* Merge from debian unstable, remaining changes (LP: #296643, LP: #242243):
   - debian/maxima-doc.doc-base.{tips, plotting}:
    + Use .shtml instead of .html to fix lintian errors.
   - debian/maxima-emacs.emacsen-install:
    + Install symlinks for source files rather than copying them.  This
      makes find-function work.
    + Install symlink for *.lisp so that we don't need to add
      /usr/share/emacs/site-lisp/maxima to load-path.
  - debian/maxima-emacs.emacsen-startup:
    + Remove use of /usr/share/emacs/site-lisp/maxima, since this
      causes load-path shadows and is not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;; -*- mode: imath -*-
 
2
 
 
3
test1: Maxima formula 1
 
4
Definite integral {maxima 'integrate(sin(x)/x,x,0,inf)=integrate(sin(x)/x,x,0,inf) maxima}&{latex  \int_{0}^{\infty }{\ifracn{\sin x}{x}\;dx}=\frac{\pi}{2} latex}
 
5
 
 
6
test2: Maxima formula 2
 
7
Summantion {maxima sum(k^2,k,1,n)=nusum(k^2,k,1,n) maxima}&{latex  \sum_{k=1}^{n}{k^{2}}=\ifracn{n\*\left(n+1\right)\*\left(2\*n+1\right)}{6} latex}
 
8
 
 
9
test3: Latex formula 1
 
10
Intersection set: {latex S = \bigcap^{\infty}_{n = 0} S_n latex}
 
11
 
 
12
test4: Latex formula 2
 
13
Mobious inversion formula: {latex G ( n ) = \sum_{d|n} F ( d ) \Rightarrow \sum_{d|n} \mu ( \frac{n}{d} ) G ( d ) = F ( n ) latex}
 
14
 
 
15
Test5 and 6: Both formula 1 and 2
 
16
 
 
17
Solve {maxima a*x^2+b*x+c=0 maxima}&{latex a\*x^{2}+b\*x+c=0 latex},
 
18
The answer: {maxima solve(a*x^2+b*x+c=0,x) maxima}&{latex \left[ x=-\ifrac{\isqrt{b^{2}-4\*a\*c}+b}{2\*a},\linebreak[0]x=\ifrac{\isqrt{b^{2}-4\*a\*c}-b}{2\*a} \right]  latex}
 
19