Back to index

wims  3.65+svn20090927
Public Member Functions | Public Attributes
fraction Class Reference

#include <chemeq.h>

List of all members.

Public Member Functions

 fraction (int numerateur, int denominateur=1)
void inverse ()
void simplifie ()

Public Attributes

int i
int d

Detailed Description

Definition at line 54 of file chemeq.h.

Constructor & Destructor Documentation

fraction::fraction ( int  numerateur,
int  denominateur = 1 
) [inline]

Definition at line 58 of file chemeq.h.


Member Function Documentation

void fraction::inverse ( ) [inline]

Definition at line 59 of file chemeq.h.

{int n=i; i=d; d=n;};

Here is the caller graph for this function:

Definition at line 934 of file

  int maxprem = 23;
  int premiers[]={2,3,5,7,11,13,17,19,23,29};
  int n;

  for (n=0; premiers[n]<= maxprem; n++){
    while (i % premiers[n] == 0 && d % premiers[n] == 0){
      i /= premiers[n]; d /= premiers[n];

Here is the caller graph for this function:

Member Data Documentation

Definition at line 57 of file chemeq.h.

Definition at line 56 of file chemeq.h.

The documentation for this class was generated from the following files: