-
issue a travel home to travel home to drive a car with the minimum of cost yi us...
旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution"。-issue a travel home to travel home to drive a car with the minimum of cost yi used from one city to another city (assuming starting at the fuel tank was empty). Given the two cities for the distance between D1, car fuel tank capacity of the C (in liters) per liter petrol traveling distance to the D2, the starting point liter gasoline prices P and several petrol stations along the N (N can be zero), PFS i distance from the starting point Di per liter Steam oil prices Pi (i = 1,2 ... N). Calculation results rounded to two decimal places. If unable to reach their destination, the export of "No Solution."
- 2023-09-07 00:25:03下载
- 积分:1
-
FPGA驱动VGA 显示图片
FPGA驱动VGA 显示图片的完整代码,经测试可用,ROM中已经保存有一个图片的rgb信息,大家也可以更改图片,去网上下载一个RGB提取的程序就可以了,把图片rgb信息保存在ROM里-FPGA VGA CODE
- 2022-07-17 03:03:05下载
- 积分:1
-
部分PKU上的源码,希望对大家有所帮助。其中包括所有提交代码,里面均有提示...
部分PKU上的源码,希望对大家有所帮助。其中包括所有提交代码,里面均有提示-PKU part on the source, and they hope to help everyone. Including all submitted code, which has prompted
- 2022-03-24 17:42:37下载
- 积分:1
-
这是在高高的GPU
这是在GPU上进行高速数字计算的数学库函数,以实现通用GPU计算-This is the GPU on the high-speed digital computing mathematical library functions in order to achieve universal GPU computing
- 2022-06-11 12:33:43下载
- 积分:1
-
Hao C
谭浩强C语言书中的一个走迷宫的例子,此程序是其算法实现,用VC编译运行-Hao C-language book of a Maze example of this process is its algorithm, compiled with VC operation
- 2022-12-31 14:35:03下载
- 积分:1
-
Used to solve nonlinear systems in the bifurcation, chaos, periodic, quasi
用来求解非线性系统中分岔,混沌,周期,准周期等动力学,可以求数值解,也可画图,只要知道系统模型,可以根据需要自由修改参数,软件带有使用说明,简单易懂-Used to solve nonlinear systems in the bifurcation, chaos, periodic, quasi-periodic dynamics, etc., you can seek numerical solutions, but also drawing, as long as know the system model, you can freely modify the parameters as needed, the software with instructions for use, simple and easy to understand
- 2022-03-19 08:32:01下载
- 积分:1
-
对数回归方程logarithmregress.cs方程模型y = * LN…
对数回归方程 LogarithmRegress.cs
方程模型为 Y=a*LnX+b
public override double[] buildFormula()
得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是b,a。
public override double forecast(double x)
预测函数,根据模型得到预测结果。
public override double computeR2()
计算相关系数(决定系数),系数越接近1,数据越满足该模型。
-Logarithmic regression equation LogarithmRegress.cs equation model for Y = a* LnX+ Bpublic override double [] buildFormula () get coefficient array, the storage order and model coefficients contrary, that is, the array is followed by the value of coefficient b, a. public override double forecast (double x) prediction function, according to the results of model prediction. public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the data satisfy the model more.
- 2022-08-31 23:15:03下载
- 积分:1
-
研究排序算法
Sorting algorithm for study
- 2022-06-02 20:37:06下载
- 积分:1
-
用最小二乘法解决实际问题,如曲线拟合,插值分析,
用最小二乘法解决实际问题,如曲线拟合,插值分析,-Least square method in solving practical problems, such as curve fitting, interpolation analysis
- 2022-09-15 01:35:04下载
- 积分:1
-
计算器C代码
鉴于算术表达式中的 x 符号,例如,24 (3 + 5) = 5,
写一个程序来读取了一个输入行中给出的表达式,解析它,对其进行计算和
给出了输出值作为单个整数或打印的字符串输入错误"如果输入格式不正确。
- 2023-01-08 04:50:03下载
- 积分:1