numapprox[minimax] - minimax rational approximation

Calling Sequence

 

minimax(f, x=a..b,
[m, n], w,
'maxerror')

minimax(f, a..b,
[m, n], w,
'maxerror')

 

Parameters

 

f

-

procedure or expression representing the function

x

-

variable name appearing in f, if f is an expression

a, b

-

numerical values specifying the interval of approximation

m

-

integer specifying the desired degree of the numerator

n

-

integer specifying the desired degree of the denominator

w

-

(optional) procedure or expression specifying the weight function, default 1

maxerror

-

(optional) a name which will be assigned the minimax norm

 
 

Description

 
• 

This procedure computes the best minimax rational approximation of degree (m, n)
for a given real function f(x) on the interval [a, b]
with respect to the positive weight function w(x), via the Remez algorithm.

• 

Specifically, it computes the rational expression  such
that

(1)

 
  

is minimized over all rational expressions  with
numerator of degree <= m and denominator of degree <= n.

• 

Note that if f(x) is nonzero on the interval of approximation then the relative error will be minimized by specifying the weight function 

si=7595/file06595/math158.png" width="108" height="44" alt="w(x) = 1/abs(f(x))" style="border:0px; vertical-align:-17px">.

• 

If the second argument is a range a..b then
the first argument is understood to be a Maple operator, and the result will be returned as an operator. If the second argument is an equation 

si=7595/file06595/math166.png" width="63" height="24" alt="x = a .. b" style="border:0px; vertical-align:-6px"> then
the first argument is understood to be an expression in the variable x, and the result will be returned as an expression.
In all cases, the numerator and denominator of the result are each expressed in Horner (nested multiplication) form.

• 

Note that for the purpose of evaluating a rational function efficiently (minimizing the number of arithmetic operations), the rational function should be converted to a continued-fraction form. See 

path=numapprox%2fconfracform" style="color:rgb(153,0,0)">numapprox[confracform].

• 

If 

si=7595/file06595/math177.png" width="44" height="24" alt="n = 0" style="border:0px; vertical-align:-6px"> or
if the third argument is simply an integer m then the best minimax polynomial approximation of degreem is
computed.

• 

If the fourth argument w is specified then it is assumed to be an
operator if f is an operator, and it is assumed to be an expression if f is
an expression. If the fourth argument is omitted then the weight function is understood to be  for
all x.

• 

If the fifth argument 'maxerror' is present then it must be a name.
Upon return, its value will be an estimate of the minimax norm specified by equation (1) above.

• 

Various levels of user information will be displayed during the computation if infolevel[minimax] is
assigned values between 1 and 3.

• 

The command with(numapprox,minimax) allows the use of the abbreviated
form of this command.

 

Examples

 

si=7595/file06595/math214.png" width="144" height="24" alt="with(numapprox)" style="border:0px; vertical-align:-6px">

si=7595/file06595/math218.png" width="182" height="29" alt="minimax(exp(x), x = 0 .. 1, 5)" style="border:0px; vertical-align:-6px">

si=7595/file06595/math221.png" width="726" height="42" alt=".9999988706+(1.000079450+(.4990961405+(.1704019041+(0.3480060952e-1+0.1390372558e-1*x)*x)*x)*x)*x" align="middle" style="border:0px; vertical-align:-24px">

(1)

si=7595/file06595/math228.png" width="434" height="44" alt="(.9502547393+(-0.529094917e-1-0.8416376466e-1*x)*x)/(.9501754297+(-0.5104192162e-1+0.6724432790e-1*x)*x)" style="border:0px; vertical-align:-17px">

(2)

(3)

si=7595/file06595/math239.png" width="89" height="24" alt="Digits := 14" style="border:0px; vertical-align:-6px">

(4)

si=7595/file06595/math246.png" width="361" height="49" alt="" style="border:0px; vertical-align:-22px">

(5)

si=7595/file06595/math256.png" width="173" height="29" alt="0.12110972781516e-8" style="border:0px; vertical-align:-6px">

(6)
 

See Also

 

numapprox[confracform]


maple minimax函数的更多相关文章

  1. Matlab常用函数集锦

    ndims(A)返回A的维数size(A)返回A各个维的最大元素个数length(A)返回max(size(A))[m,n]=size(A)如果A是二维数组,返回行数和列数nnz(A)返回A中非0元素 ...

  2. MATLAB相关快捷键以及常用函数

    MATLAB快捷键大全 F1帮助 F2改名F3搜索 F4地址 F5刷新 F6切换 F10菜单 CTRL+A全选 CTRL+C复制 CTRL+X剪切 CTRL+V粘贴 CTRL+Z撤消 CTRL+O打开 ...

  3. matlab中help所有函数功能的英文翻译

    doc funname 在帮助浏览器中打开帮助文档 help funname 在命令窗口打开帮助文档 helpbrowser 直接打开帮助浏览器 lookfor funname 搜索某个关键字相关函数 ...

  4. Maple重点知识总结

    Maple中的evalf与evalhf evalf 可作用于单值 可作用于List 可作用于Set 可作用于Vector(<..>) 可作用于Matrix(<..|..|..> ...

  5. matlab函数列表(A~Z)【转】

    A a abs 绝对值.模.字符的ASCII码值acos 反余弦acosh 反双曲余弦acot 反余切acoth 反双曲余切acsc 反余割acsch 反双曲余割align 启动图形对象几何位置排列工 ...

  6. MATLAB命令大全

    一.常用对象操作:除了一般windows窗口的常用功能键外.1.!dir 可以查看当前工作目录的文件. !dir& 可以在dos状态下查看.2.who 可以查看当前工作空间变量名, whos ...

  7. [转] MATLAB快捷键

    原文地址:MATLAB快捷键大全 (转载)作者:掷地有声 一.索引混排版 备注:删除了如F1(帮助)等类型的常见快捷命令 SHIFT+DELETE永久删除 DELETE删除 ALT+ENTER属性 A ...

  8. matlab快捷键大全

    原文地址,点此查看 一.常用对象操作 除了一般windows窗口的常用功能键外. 1.!dir 可以查看当前工作目录的文件. !dir& 可以在dos状态下查看. 2.who   可以查看当前 ...

  9. [转载] MATLAB快捷键

    原文地址,点此查看 一.常用对象操作 除了一般windows窗口的常用功能键外. 1.!dir 可以查看当前工作目录的文件. !dir& 可以在dos状态下查看. 2.who   可以查看当前 ...

随机推荐

  1. java string(2)

    1. indexOf()函数是一个执行速度非常快的函数,可以用其与subString()实现高效的字符串分割,比内置的要高效. 2. charAt()方法也是高效率的函数,可以用其实现高效的start ...

  2. [Android Studio] Android Studio如何查看branch列表及切换branch(转载)

    转载地址:http://blog.csdn.net/hyr83960944/article/details/36185231 用Git bash去切换相信大家都会,一行命令行搞定的问题.而在Andro ...

  3. docker和虚拟化技术的区别

    1.docker和虚拟化技术的区别 Docker 扩展了 Linux 容器(Linux Containers),或着说 LXC,通过一个高层次的 API 为进程单独提供了一个轻量级的虚拟环境.Dock ...

  4. Nescafé2 月之谜 题解

    月之谜 (mystery.pas/c/cpp) [题目描述] 打败了 Lord lsp 之后,由于 lqr 是一个心地善良的女孩子,她想净化 Lord lsp 黑化的心,使他变回到原来那个天然呆的 l ...

  5. ThreadLocal实现session中用户信息 的线程间共享

    转载自:http://blog.sina.com.cn/s/blog_4b5bc01101013gok.html ThreadLocal并不难理解,我总结的最简单的理解就是: ThreadLocal像 ...

  6. QT creator出现 no executable specified时解决办法

    1.     本人是在linux/ubutun中使用QT creator,一次编译程序的时候出现了“no executable specified”的错误而无法运行程序.解决办法: 在用QT crea ...

  7. go语言基础之闭包捕获外部变量特点

    1.闭包捕获外部变量特点 示例: package main //必须 import "fmt" func main() { a := 10 str := "mike&qu ...

  8. 使用webService时,gsoap数据类型注意事项

    今天在使用gsoap生成webservice客户端文件时,发现我的参数类型全被改了,比如string型变成了char*,原来有STL的地方也变没了,经过研究发现,原来和我生成的头文件时使用的参数有关, ...

  9. 如何使用Linux匿名上网-四大法宝

    信息时代给我们的生活带来极大便利和好处的同时也带来了很大的风险.一方面,人们只要点击几下按钮,就能基本上访问已知存在的全部信息和知识;另一方面,要是这种权力落到个别不法分子手里,就会引起重大破坏和灾难 ...

  10. JavaScript计算两个日期的时间差

    /** * * @param startTime * @param endTime * @param diffType * @returns {Number|number} * @constructo ...