Révision 55
pobysoPythonSage/src/pobyso.py (revision 55) | ||
---|---|---|
110 | 110 |
# Compare the local Sage RealNumber with rnArg. |
111 | 111 |
return(cmp_rn_value(rnArg, rnLocal)) |
112 | 112 |
|
113 |
def pobyso_change_var_in_function_so_so(funcSo, chvarExpSo): |
|
114 |
return(sollya_lib_evaluate(funcSo,chvarExpSo)) |
|
115 |
|
|
116 |
|
|
117 |
def pobyso_chebyshevform_so_so(functionSo, degreeSo, intervalSo): |
|
118 |
resultSo = sollya_lib_chebyshevform(functionSo, degreeSo, intervalSo) |
|
119 |
return(resultSo) |
|
120 |
|
|
121 |
|
|
122 |
|
|
113 | 123 |
def pobyso_compute_pos_function_abs_val_bounds_sa_sa(funcSa, lowerBoundSa, \ |
114 | 124 |
upperBoundSa): |
115 | 125 |
""" |
... | ... | |
155 | 165 |
""" |
156 | 166 |
return(sollya_lib_constant(get_rn_value(rnArg))) |
157 | 167 |
|
168 |
def pobyso_constant_0_sa_so(): |
|
169 |
return(pobyso_constant_from_int_sa_so(0)) |
|
170 |
|
|
158 | 171 |
def pobyso_constant_1(): |
159 | 172 |
""" Legacy function. See pobyso_constant_so_so. """ |
160 | 173 |
return(pobyso_constant_1_sa_so()) |
... | ... | |
430 | 443 |
Notice that, in the returned polynomial, the exponents are RealNumbers. |
431 | 444 |
""" |
432 | 445 |
#pobyso_autoprint(sollyaExp) |
433 |
operator = pobyso_get_head_function(sollyaExp) |
|
446 |
operator = pobyso_get_head_function_so_sa(sollyaExp)
|
|
434 | 447 |
# Constants and the free variable are special cases. |
435 | 448 |
# All other operator are dealt with in the same way. |
436 | 449 |
if (operator != SOLLYA_BASE_FUNC_CONSTANT) and \ |
... | ... | |
473 | 486 |
""" |
474 | 487 |
Get the subfunctions of an expression. |
475 | 488 |
Return the number of subfunctions and the list of subfunctions addresses. |
476 |
Could not figure out another way than that ugly list of declarations |
|
477 |
to recover the addresses of the subfunctions. |
|
478 |
Arity is limited to 9. |
|
489 |
S.T.: Could not figure out another way than that ugly list of declarations |
|
490 |
to recover the addresses of the subfunctions. |
|
479 | 491 |
""" |
480 | 492 |
subf0 = c_int(0) |
481 | 493 |
subf1 = c_int(0) |
pobysoPythonSage/src/sollya_lib.sage (revision 55) | ||
---|---|---|
13 | 13 |
# use them without the "sollya." prefix). |
14 | 14 |
sollya_lib_absolute = sollya.sollya_lib_absolute |
15 | 15 |
sollya_lib_autoprint = sollya.sollya_lib_autoprint |
16 |
sollya_lib_build_function_add = sollya.sollya_lib_build_function_add |
|
17 |
sollya_lib_build_function_div = sollya.sollya_lib_build_function_div |
|
16 | 18 |
sollya_lib_build_function_exp = sollya.sollya_lib_build_function_exp |
19 |
sollya_lib_build_function_free_variable = \ |
|
20 |
sollya.sollya_lib_build_function_free_variable |
|
21 |
sollya_lib_build_function_mul = sollya.sollya_lib_build_function_mul |
|
22 |
sollya_lib_build_function_pow = sollya.sollya_lib_build_function_pow |
|
17 | 23 |
sollya_lib_build_function_sub = sollya.sollya_lib_build_function_sub |
24 |
sollya_lib_chebyshevform = sollya.sollya_lib_chebyshevform |
|
18 | 25 |
sollya_lib_clear_obj = sollya.sollya_lib_clear_obj |
19 | 26 |
sollya_lib_clear_object_list = sollya.sollya_lib_clear_object_list |
20 | 27 |
sollya_lib_close = sollya.sollya_lib_close |
... | ... | |
23 | 30 |
sollya_lib_constant_from_int64 = sollya.sollya_lib_constant_from_int64 |
24 | 31 |
sollya_lib_constant_from_uint64 = \ |
25 | 32 |
sollya.sollya_lib_constant_from_uint64 |
33 |
sollya_lib_copy_obj = sollya.sollya_lib_copy_obj |
|
26 | 34 |
sollya_lib_cos = sollya.sollya_lib_cos |
27 | 35 |
sollya_lib_evaluate = sollya.sollya_lib_evaluate |
28 | 36 |
sollya_lib_get_canonical = sollya.sollya_lib_get_canonical |
... | ... | |
50 | 58 |
sollya_lib_infnorm = sollya.sollya_lib_infnorm |
51 | 59 |
sollya_lib_init= sollya.sollya_lib_init |
52 | 60 |
sollya_lib_is_absolute = sollya.sollya_lib_is_absolute |
61 |
sollya_lib_mid = sollya.sollya_lib_mid |
|
53 | 62 |
sollya_lib_name_free_variable = \ |
54 | 63 |
sollya.sollya_lib_name_free_variable |
55 | 64 |
sollya_lib_obj_is_function = sollya.sollya_lib_obj_is_function |
Formats disponibles : Unified diff