摘要: 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 阅读全文
posted @ 2021-09-28 20:05 Aheador 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 有函数: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 输入格式: 无。 阅读全文
posted @ 2021-09-28 19:22 Aheador 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 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 阅读全文
posted @ 2021-09-28 19:02 Aheador 阅读(93) 评论(0) 推荐(0) 编辑