numerical-methods

Exact value of a floating-point number as a rational

扶醉桌前 提交于 2020-12-01 11:38:21
问题 I'm looking for a method to convert the exact value of a floating-point number to a rational quotient of two integers, i.e. a / b , where b is not larger than a specified maximum denominator b_max . If satisfying the condition b <= b_max is impossible, then the result falls back to the best approximation which still satisfies the condition. Hold on. There are a lot of questions/answers here about the best rational approximation of a truncated real number which is represented as a floating

Exact value of a floating-point number as a rational

£可爱£侵袭症+ 提交于 2020-12-01 11:35:08
问题 I'm looking for a method to convert the exact value of a floating-point number to a rational quotient of two integers, i.e. a / b , where b is not larger than a specified maximum denominator b_max . If satisfying the condition b <= b_max is impossible, then the result falls back to the best approximation which still satisfies the condition. Hold on. There are a lot of questions/answers here about the best rational approximation of a truncated real number which is represented as a floating

Is there a Python library for exponential spline interpolation?

筅森魡賤 提交于 2020-07-06 05:30:39
问题 I am working on a new model which is very sensitive to the interpolation/fit used to describe a certain dataset. I have some success with linear splines and logarithmic fits but I think there is still significant room for improvement. My supervisor suggested I take a look at exponential splines. I have found some books on the theory of exponential spines but no reference to a library or code example to follow. Is there a library that I am unaware of that supports this feature? 来源: https:/

Is there a Python library for exponential spline interpolation?

大兔子大兔子 提交于 2020-07-06 05:30:14
问题 I am working on a new model which is very sensitive to the interpolation/fit used to describe a certain dataset. I have some success with linear splines and logarithmic fits but I think there is still significant room for improvement. My supervisor suggested I take a look at exponential splines. I have found some books on the theory of exponential spines but no reference to a library or code example to follow. Is there a library that I am unaware of that supports this feature? 来源: https:/

Is there a Python library for exponential spline interpolation?

喜夏-厌秋 提交于 2020-07-06 05:30:13
问题 I am working on a new model which is very sensitive to the interpolation/fit used to describe a certain dataset. I have some success with linear splines and logarithmic fits but I think there is still significant room for improvement. My supervisor suggested I take a look at exponential splines. I have found some books on the theory of exponential spines but no reference to a library or code example to follow. Is there a library that I am unaware of that supports this feature? 来源: https:/