• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

Public Member Functions | List of all members
EquationString Class Reference

#include <equation.h>

Inherits QString.

Public Member Functions

 EquationString (const QString &string)
 
void addTerm (double coeff, const QString &unknowns, bool &needsign)
 
void prettify (void)
 
double trunc (double)
 
const QString x () const
 
const QString x2 () const
 
const QString x2y () const
 
const QString x3 () const
 
const QString xnym (int n, int m) const
 
const QString xy () const
 
const QString xy2 () const
 
const QString y () const
 
const QString y2 () const
 
const QString y3 () const
 

Detailed Description

Simple class that represents an equation.

It does not do any calculation, it serves only as a helper to write equations like $ 7 xy + 3 y^2 - 5 x - 2 y + 8 = 0 $ in a pretty form. It can handle equations of max two variables (named x and y ) with no limits on the grade of the terms. (well, the limit is 15, but I doubt anyone will ever use such a factor for a power...)

Definition at line 49 of file equation.h.

Constructor & Destructor Documentation

EquationString::EquationString ( const QString &  string)

Definition at line 30 of file equation.cc.

Member Function Documentation

void EquationString::addTerm ( double  coeff,
const QString &  unknowns,
bool &  needsign 
)

Definition at line 41 of file equation.cc.

void EquationString::prettify ( void  )

Definition at line 117 of file equation.cc.

double EquationString::trunc ( double  d)

Definition at line 35 of file equation.cc.

const QString EquationString::x ( ) const

Definition at line 105 of file equation.cc.

const QString EquationString::x2 ( ) const

Definition at line 90 of file equation.cc.

const QString EquationString::x2y ( ) const

Definition at line 80 of file equation.cc.

const QString EquationString::x3 ( ) const

Definition at line 70 of file equation.cc.

const QString EquationString::xnym ( int  n,
int  m 
) const

Definition at line 123 of file equation.cc.

const QString EquationString::xy ( ) const

Definition at line 100 of file equation.cc.

const QString EquationString::xy2 ( ) const

Definition at line 85 of file equation.cc.

const QString EquationString::y ( ) const

Definition at line 110 of file equation.cc.

const QString EquationString::y2 ( ) const

Definition at line 95 of file equation.cc.

const QString EquationString::y3 ( ) const

Definition at line 75 of file equation.cc.


The documentation for this class was generated from the following files:
  • equation.h
  • equation.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal