Révision 239 pobysoPythonSage/src/pobyso.py

pobyso.py (revision 239)
436 436
    floating-point numbers.
437 437
    """
438 438
    listSa   = []
439
    ## Remember pobyso_get_list_elements_so_so returns more information
440
    #  than just the elements of the list (# elements, is_ellipti)
441
    listSaSo = pobyso_get_list_elements_so_so(listSo)[0]
439
    ## The function returns none if the list is empty or an error has happened.
440
    retVal = pobyso_get_list_elements_so_so(listSo)
441
    if retVal is None:
442
        return listSa
443
    ## Just in case the interface is changed and an empty list is returned.
444
    elif len(retVal) == 0:
445
        return listSa
446
    else:
447
        ## Remember pobyso_get_list_elements_so_so returns more information
448
        #  than just the elements of the list (# elements, is_ellipti)
449
        listSaSo, numElements, isEndElliptic = retVal
450
    if numElements == 0:
451
        return listSa
442 452
    ## Search first for the maximum precision of the elements
443 453
    maxPrecSa = 0
444 454
    for floatSo in listSaSo:

Formats disponibles : Unified diff