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

unit_letter Class Reference

A unit_letter is a letter whose letter content equals 1. More...

#include <unit_letter.h>

Inheritance diagram for unit_letter:

letter basic_letter List of all members.

Public Member Functions

 unit_letter (const GiNaC::ex &d)
 unit_letter (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)
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 unit_letter is a letter whose letter content equals 1.

The model for a unit_letter is

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

Here $n$ is the degree and $i$ the summation 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{1}{i^{m_1}} \frac{1}{i^{m_2}} = \frac{1}{i^{m_1+m_2}} \]

and returns directly a unit_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 letter.

ex eval int  level = 0  )  const
 

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

Reimplemented from 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