Révision 262

pobysoPythonSage/src/pobyso.py (revision 262)
412 412
    return sollya_lib_error(None)
413 413
# End pobyso_error().
414 414

  
415
def pobyso_evaluate_so_sa(funcSo, argumentSo):
416
    """
417
    Evaluates funcSo for arguemntSo through sollya_lib_evaluate() and return
418
    the result as a Sage object
419
    """
420
    evalSo = sollya_lib_evaluate(funcSo, argumentSo)
421
    if pobyso_is_error_so_sa(evalSo):
422
        return None
423
    if pobyso_is_range_so_sa(evalSo):
424
        retVal = pobyso_range_to_interval_so_sa(evalSo)
425
    else:
426
        retVal = pobyso_get_constant_as_rn(evalSo)
427
    sollya_lib_clear_obj(evalSo)
428
    return retVal
429
# End pobyso_evaluate_so_sa.
430

  
415 431
def pobyso_evaluate_so_so(funcSo, argumentSo):
416 432
    """
417 433
    Evaluates funcSo for arguemntSo through sollya_lib_evaluate().

Formats disponibles : Unified diff