Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

letter Class Reference

A letter is a basic_letter with offset=0. More...

#include <letter.h>

Inheritance diagram for letter:

basic_letter unit_letter List of all members.

Public Member Functions

 letter (const GiNaC::ex &l, const GiNaC::ex &d)
 letter (const GiNaC::ex &l, const GiNaC::ex &d, const GiNaC::ex &i)
void archive (GiNaC::archive_node &node) const
void read_archive (const GiNaC::archive_node &node, GiNaC::lst &sym_lst)
GiNaC::return_type_t return_type_tinfo () const
void print (const GiNaC::print_context &c, unsigned level=0) const
GiNaC::ex eval (int level=0) const
GiNaC::ex concat_speedy (const GiNaC::ex &l) const

Detailed Description

A letter is a basic_letter with offset=0.

The model for a letter is

\[ \frac{x^i}{i^n} \]

Here $x$ is the scale, $n$ is the degree and $i$ the index.


Member Function Documentation

ex concat_speedy const GiNaC::ex &  l  )  const [virtual]
 

Assumes that the indices are the same or equal to the default one.

The multiplication is performed according to

\[ \frac{x^i}{i^{m_1}} \frac{y^i}{i^{m_2}} = \frac{(xy)^i}{i^{m_1+m_2}} \]

and returns directly a letter.

The result gets the index from the first letter, if this one differs from _default_index, otherwise the result gets the index from the second letter.

Reimplemented from basic_letter.

Reimplemented in unit_letter.

ex eval int  level = 0  )  const
 

If the scale equals one, evaluation returns a unit_letter .

If the index is an integer, the object is evaluated explicitly.

Reimplemented from basic_letter.

Reimplemented in unit_letter.


The documentation for this class was generated from the following files:
Generated on Wed Jun 10 22:59:11 2009 for Nestedsums library by doxygen 1.3.7