1311 |
else: |
else: |
1312 |
raise TypeError,"whereNonZero: Unknown argument type." |
raise TypeError,"whereNonZero: Unknown argument type." |
1313 |
|
|
1314 |
|
def erf(arg): |
1315 |
|
""" |
1316 |
|
returns erf of argument arg |
1317 |
|
|
1318 |
|
@param arg: argument |
1319 |
|
@type arg: C{float}, L{escript.Data}, L{Symbol}, L{numarray.NumArray}. |
1320 |
|
@rtype: C{float}, L{escript.Data}, L{Symbol}, L{numarray.NumArray} depending on the type of arg. |
1321 |
|
@raises TypeError: if the type of the argument is not expected. |
1322 |
|
""" |
1323 |
|
if isinstance(arg,escript.Data): |
1324 |
|
return arg._erf() |
1325 |
|
else: |
1326 |
|
raise TypeError,"erf: Unknown argument type." |
1327 |
|
|
1328 |
def sin(arg): |
def sin(arg): |
1329 |
""" |
""" |
1330 |
returns sine of argument arg |
returns sine of argument arg |