Révision 206

pobysoPythonSage/src/sageSLZ/sageRunSLZ.sage (revision 206)
44 44
    upperBound = RRR(inputUpperBound)
45 45
    ## Before going any further, check domain and image binade conditions.
46 46
    print inputFunction(1).n()
47
    (lb,ub) = slz_fix_bounds_for_binades(lowerBound, upperBound, inputFunction)
48
    if lb != lowerBound or ub != upperBound:
47
    output = slz_fix_bounds_for_binades(lowerBound, upperBound, inputFunction)
48
    if output is None:
49
        print "Invalid domain/image binades. Domain:",\
50
        lowerBound, upperBound, "Images:", \
51
        inputFunction(lowerBound), inputFunction(upperBound)
52
        raise Exception("Invalid domain/image binades.")
53
    lb = output[0] ; ub = output[1]
54
    if lb is None or lb != lowerBound or ub != upperBound:
49 55
        print "lb:", lb, " - ub:", ub
50 56
        print "Invalid domain/image binades. Domain:",\
51 57
        lowerBound, upperBound, "Images:", \
......
504 510
    upperBound = RRR(inputUpperBound)
505 511
    ## Before going any further, check domain and image binade conditions.
506 512
    print inputFunction(1).n()
507
    (lb,ub) = slz_fix_bounds_for_binades(lowerBound, upperBound, inputFunction)
513
    output = slz_fix_bounds_for_binades(lowerBound, upperBound, inputFunction)
514
    if output is None:
515
        print "Invalid domain/image binades. Domain:",\
516
        lowerBound, upperBound, "Images:", \
517
        inputFunction(lowerBound), inputFunction(upperBound)
518
        raise Exception("Invalid domain/image binades.")
519
    lb = output[0] ; ub = output[1]
508 520
    if lb != lowerBound or ub != upperBound:
509 521
        print "lb:", lb, " - ub:", ub
510 522
        print "Invalid domain/image binades. Domain:",\

Formats disponibles : Unified diff