摘要:
7-1 maximum number in a unimodal array (40 分) 题目描述: You are a given a unimodal array of n distinct elements, meaning that its entries are in increasin 阅读全文
摘要:
题目描述: 有函数:f(x)=x5−15x4+85x3−225x2+274x−121 已知f(1.5)>0,f(2.4)<0 且方程f(x)=0 在区间[1.5,2.4] 有且只有一个根,请用二分法求出该根。 提示:判断函数是否为0,使用表达式 fabs(f(x)) < 1e-7 输入格式: 无。 阅读全文
摘要:
题目描述: You are a given a unimodal array of n distinct elements, meaning that its entries are in increasing order up until its maximum element, after wh 阅读全文