File: journal.mpt

package info (click to toggle)
mathpiper 0.0.svn2556-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,416 kB
  • ctags: 2,729
  • sloc: java: 21,643; xml: 751; sh: 105; makefile: 5
file content (38 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

/*
 * This file contains tests to check constructs used in the 
 * tutorials and journal entries.
 */

Verify(1+1,2);
Verify("This text","This text");
Verify(2+3,5);
Verify(3*4,12);
Verify(-(3*4),-12);
Verify(2+3*4,14);
Verify(6/3,2);
Verify(1/3,1/3);
Verify(IsNumber(N(1/3)),True);
Verify(Sin(Pi),0);
Verify(Min(5,1,3,-5,10),-5);
Verify(Sqrt(2),Sqrt(2));
Verify({1,2,3},{1,2,3});
Verify({a,b,c}[2],b);
Verify("abc"[2],"b");


// Etcetera.... PLEASECHECK TODO fill out this file




/* From derivatives example, I am using ^0.5 there because of the
 * fact that Yacas replaces x^(1/2) with Sqrt(x).
 */
Verify(x^(1/2),Sqrt(x));