![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
题目
chengjieno1
这个作者很懒,什么都没留下…
展开
-
木板容量问题
1、水桶问题#include <iostream>#include <vector>using namespace std;int simple_counter(std::vector<int>* s_sample){ int max_s=0; int temp_s=0; int compacity=0; ...原创 2018-09-24 03:26:14 · 470 阅读 · 0 评论 -
开根运算的代码实现()
问题为x^0.5=X;x为非负实数。一、运用牛顿迭代法两边平方移项得 X^2-x=0,可以用牛顿迭代法求解二元一次方程的根#include<stdio.h>#include<math.h>double func(double x,double c) //要求解的函数方程{ return x*x-c;}double fun...原创 2019-03-03 17:49:57 · 2157 阅读 · 0 评论