File: maxima.cdb

package info (click to toggle)
cadabra 1.46-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,244 kB
  • sloc: cpp: 33,188; ansic: 2,724; makefile: 329; yacc: 180; sh: 157; python: 45; lex: 38; lisp: 19
file content (16 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Testing the interface to maxima.
#
@reset.
obj1:= trigsimp( sin(x)**2 + cos(x)**2 );
@maxima(%);
tst1:= 1 - @(obj1);
@collect_terms!(%);
@assert(tst1);

@reset.
obj2:= integrate( \sin(x)**2, x );
@maxima(%);
tst2:= (1/2 x - 1/4 \sin(2 x)) - @(obj2);
@sumflatten!(%);
@collect_terms!(%);
@assert(tst2);