[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kalgebra-newplotter/keomath/solvers
From:       Percy Camilo TriveƱo Aucahuasi <percy.camilo.ta () gmail ! com
Date:       2010-07-31 20:11:55
Message-ID: 20100731201155.0E2B6AC783 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1157664 by aucahuasi:

hope this will be the last fix for y->f(y) :)

 M  +10 -1     functioncartesian.cpp  


--- branches/work/kalgebra-newplotter/keomath/solvers/functioncartesian.cpp #1157663:1157664
@@ -138,6 +138,9 @@
 
 void FunctionY::calculateValues(double l_lim, double r_lim)
 {
+	double from = qMin(l_lim, r_lim);
+	double to = qMax(l_lim, r_lim);
+
     m_jumps.clear();
     points.clear();
     points.reserve(resolution());
@@ -145,7 +148,7 @@
 //    double step= double((-l_lim+r_lim)/resolution());
 
     bool jumping=true;
-    for(double x=l_lim; x<r_lim-STEP; x+=STEP) {
+	for(double x=from; x<to - STEP; x+=STEP) {
 		iv->setValue(x);
         Cn y = func.calculateLambda().toReal();
         QPointF p(x, y.value());
@@ -165,6 +168,12 @@
             }
         }
     }
+
+	qDebug() << l_lim;
+	qDebug() << r_lim-STEP;
+
+
+
 // 	qDebug() << "juuuumps" << m_jumps << resolution();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic