File:  [CENS] / python / pyGiNaC / test / basic.tst
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Thu Mar 15 13:48:35 2001 UTC (16 years, 8 months ago) by pearu
Branches: MAIN
CVS tags: HEAD
Major revision, now more explicit wrapping

#
# $Id: basic.tst,v 1.2 2001-03-15 13:48:35 pearu Exp $
# Pearu Peterson

_startup = __import__('__startup__')
module = __import__('GiNaC._ginac',globals(),locals(),['_ginac'])

isinstance(basic(),basic)		:: 1
isinstance(basic(basic()),basic)	:: 1
isinstance(basic(symbol()),basic)	:: 1
isinstance(basic(numeric(4,3)),basic)	:: 1
isinstance(basic(),ex)		:: 0

basic().print_(0)		:: [basicobject]
basic().printraw()		:: [basicobject]
basic(symbol("a")).printraw()	:: [basicobject]
basic().printtree(2).strip().split(',')[0]	:: type=basic
','.join(basic().printtree(2).strip().split(',')[2:])	:: flags=0,nops=0
','.join(basic(symbol()).printtree(2).strip().split(',')[2:])	:: flags=6,nops=0
basic().printcsrc(0,0) :: 

basic() :: [basicobject]

basic().info(0) :: 0
basic().nops() :: 0
basic().op(0) :: RuntimeError,op()outofrange
basic().let_op(0) :: RuntimeError,op()outofrange
basic().has(ex()) :: 0
basic().degree(symbol("a")) :: 0
basic().ldegree(symbol("a")) :: 0
basic().coeff(symbol("a"),1) :: 0
basic().collect(symbol("a")) :: [basicobject]
basic().eval(0) :: [basicobject]
basic().evalf(0) :: [basicobject]
basic().series(relational(ex(),ex(),2),1,0) :: RuntimeError,basic::subs(ex):argumentmustbealist
basic().integer_content() :: 1
basic().smod(numeric(3)) :: [basicobject]
basic().max_coefficient() :: 1
len(basic().get_free_indices()) :: 0
basic().get_free_indices()[0] :: IndexError,0
basic().simplify_ncmul(exvector()) :: 1
basic().eval_indexed(basic()) :: [basicobject]
basic().contract_with(ex(),ex()) :: 0
basic().diff(symbol("a"),1) :: RuntimeError,differentiationnotsupportedbythistype
not basic().compare(basic()) :: 0
basic().is_equal(basic()) :: 0
basic().hold() :: [basicobject]
isinstance(basic().gethash(),type(1)) :: 1
basic().tinfo() :: 1
basic().setflag(3) :: [basicobject]
basic().clearflag(3) :: [basicobject]

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>