- 博客(4)
- 收藏
- 关注
原创 C#winform实现鼠标响应左键按下,并记下其坐标
private void Form1_MouseClick(object sender, MouseEventArgs e) { this.label1.Text = "相对坐标:" +this.PointToClient(MousePosition).ToString(); this.label2.Text = "绝对坐标:"...
2018-09-27 14:29:41 4252
原创 matlab手写遗传算法解决一元函数最值问题(实例)
问题:找出y=x4-4x3+3x+5 (xÎ[0,6])在[0,6]之间的最小值。 思路:用33位0,1变量来编码x,3位编码整数,30位编码小数。理论上30位编码小数可以将最小值对应的x精确到小数点后九位. 下面是我解决这个问题所有的函数,复制就可以运行了。 交换值的函数: function [x,y]=exchange(x,y) temp=x; x=y; y=tem...
2018-09-22 10:27:24 2803 2
原创 Exponentiation
Description Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many comp...
2018-09-10 21:38:53 1485
原创 Web Navigation
Description Standard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features is to use two stacks to keep track of the pages t...
2018-09-09 17:44:52 1572
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人