Exemplo n.º 1
0
import xmlParser
import validation
import error
import displayGraphics
from pyx import color,text,unit,canvas

from numpy import log

################################################################################
#				Main program
################################################################################




reponse = xmlParser.parse_xml_response("essai_xml_response.xml")
print(validation.validation_code(reponse,"essai_xml.xml","laplacian1DP1",0.32))
#print(validation.validation_code_norm(reponse,"essai_xml.xml","laplacian1DP1","H1",0.05))
data=[[1,2,20],[1,4,6.78]]
func="x**2"
#print(error.validation_all(data,func,0.1))

#data=datas[0]
#func=funcs[0]
data2=error.changedata(data,func)
func2=error.changefunc(func)
data3=error.slope_calc(data,func)

#print(data2)
#print(func2)
Exemplo n.º 2
0
#! /usr/bin/python

import xmlParser
import validation
import error
import displayGraphics
from pyx import color, text, unit, canvas

from numpy import log

################################################################################
#				Main program
################################################################################

reponse = xmlParser.parse_xml_response("essai_xml_response.xml")
print(
    validation.validation_code(reponse, "essai_xml.xml", "laplacian1DP1",
                               0.32))
#print(validation.validation_code_norm(reponse,"essai_xml.xml","laplacian1DP1","H1",0.05))
data = [[1, 2, 20], [1, 4, 6.78]]
func = "x**2"
#print(error.validation_all(data,func,0.1))

#data=datas[0]
#func=funcs[0]
data2 = error.changedata(data, func)
func2 = error.changefunc(func)
data3 = error.slope_calc(data, func)

#print(data2)
#print(func2)
Exemplo n.º 3
0
from pyx import *
from pyx.deco import barrow,earrow
from pyx.style import linewidth, linestyle
from pyx.graph.axis import *
from pyx.graph.axis import painter, tick

from scipy import *
from scipy.optimize import leastsq
#from scipy.io import array_import

from numpy import *

################################################################################
#				Main program
################################################################################
reponse = xmlParser.parse_xml_response("essai_xml_response2.xml")
reponse2 = xmlParser.parse_xml_response("essai_xml_response3.xml")

########################################################
#On parse l'ensemble des datas et funcs et on les stocke
########################################################


progname="laplacian"
path="./"

precision=0.01
val_param={"dim":["1"],"order":["1"],"beta":["0.1"],"nu":["0.2"],"h":["0.5"]}
val_depend={"h":["0.5","0.75","0.95"],"nu":["0.2","0.4","0.8"],"beta":["0.1","0.4","0.7","0.9","1.4"]}

data=[[0.5,0.75,1],[-1,2,3]]
Exemplo n.º 4
0
from pyx import *
from pyx.deco import barrow, earrow
from pyx.style import linewidth, linestyle
from pyx.graph.axis import *
from pyx.graph.axis import painter, tick

from scipy import *
from scipy.optimize import leastsq
#from scipy.io import array_import

from numpy import *

################################################################################
#				Main program
################################################################################
reponse = xmlParser.parse_xml_response("essai_xml_response2.xml")
reponse2 = xmlParser.parse_xml_response("essai_xml_response3.xml")

########################################################
#On parse l'ensemble des datas et funcs et on les stocke
########################################################

progname = "laplacian"
path = "./"

precision = 0.01
val_param = {
    "dim": ["1"],
    "order": ["1"],
    "beta": ["0.1"],
    "nu": ["0.2"],