博文
vb矩阵换算(2008-08-27 21:33:00)
摘要:
Explained with Mathematical EquationsBy Saad Khakwani
Development of a Matrix class, including basic arithmetic functions and various determinant methods explained with the help of mathematical equations
VB, Windows, .NET, Visual Studio, Dev
Posted: 14 May 2007
Updated: 16 May 2007
Views: 17,919
Bookmarked: 29 times
Announcements
Summer Code Competition!
New thawte
Scavenger Hunt!
Monthly Competition
Want a new Job?
Senior Software Developer at MOC1 Solutions, LLC in United States
Senior .NET Programmer/Architect at Greater Than Solutions in United States
Senior Software Engineer - Server Solutions at Vital Images in United States
View Latest Jobs...
Chapters
Desktop Development
Button Controls
Clipboard
Combo & List Boxes
Dialogs and Windows
Desktop Gadgets
Document / View
Edit Controls
Files and Folders
Grid & Data Controls
List Controls
Menus
Miscellaneous
......
Operator Overloading: A demonstration us(2008-08-27 21:32:00)
摘要:
Operator Overloading: A demonstration using matrices (Matt Gertz)
Published 07 May 07 10:51 AM
Over a decade ago, before I joined Microsoft, I was a doctoral candidate at Carnegie Mellon studying robotics. One of the things that you had to do to get into the doctoral program was pass a qualifier test (“the qual”), which was a three-hour oral examination at the conclusion of the Master’s program. My qual was, without a doubt, the most grueling experience I’d ever gone through – rougher than my actual dissertation several years later, and certainly rougher than a Microsoft interview. (“You just want me to write a program to shuffle a deck of cards? I think I can manage that…”) For the “qual,” it was common knowledge that you’d be expected to memorize and write out on command just about every formula known to mankind about the physics of robotics. To prepare, I wrote down 78 equations that I thought would be fair game during the exam, and I spent on......
用c#编写的关于矩阵的类库(2008-08-27 21:13:00)
摘要:Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article
Download csml_complex.zip - 167.3 KB
Download doc.zip - 210.8 KB (Documentation)
Version Info
Version 0.9 - Last Update: July 4, 2007
Introduction
CSML - C# Matrix Library - is a compact and lightweight package for numerical linear algebra. Many matrix operations known from Matlab, Scilab and Co. are implemented.
Remark
Make sure to return to this article once in a while for updates. A project of this size a is big thing for one man to handle. Scilab (free Matlab clone), for instance, has been created by an academic consortium, and Matlab's creator, Mathworks, is a well-fed enterprise.
Bugfixes will always come as updates, and if you have a look at the history below, you will see there have been quit a number of, ehm, improvements in a short period of time.
What it can do
The core of the l......
牛顿法求方程的解(2008-08-27 21:08:00)
摘要:
Title
Use Newton's method to find the roots of an equation in Visual Basic .NET
Description
This example shows how to use Newton's method to find the roots of an equation in Visual Basic .NET.
Keywords
Newton's method, equation, root, zero
Categories
Algorithms, Graphics, VB.NET
Newton's method calculates the roots of equations. In other words, it finds the values of X for which F(X) = 0.
This program graphs the equation X^3/3 - 2*X + 5. When you click on the graph, it uses Newton's method to find a root of the equation, starting from the X value that you clicked.
' The function.
Private Function F(ByVal x As Double) As Single
Return x * x * x / 3 - 2 * x * x + 5
End Function
' Draw the background graph.
Private Sub DrawGraph(ByVal gr As Graphics)
gr.Clear(Me.BackColor)
' Scale for convenience.
gr.ScaleTransform(SCALE_FACTOR, -SCALE_FACTOR)
gr.TranslateTransform( _
Me.ClientRectang......
解二次方程c#(2008-08-27 21:01:00)
摘要:
Quadratic equation
Determine real and complex roots of a quadratic equation ax^2 + bx + c = 0 and check results
function openSmallWindow(url) {
window.open(url,"smallWindow","width=600,height=290,resizable=yes");
return false;
}
//
Submitted By: horace
Actions:
Rating:
0 1 2 3 4 5
Views: 3,179
Language: C++
Last Modified: December 15, 2006
Instructions: enter a, b and c
roots are evaluated and printed together with a test which uses the roots to evaluate
ax^2 + bx + c
which should be 0
Snippet
// Determine real and complex roots of a quadratic equation and check results
// ax^2 + bx + c = 0
#include <iostream>
#include <math.h>
#include <complex>
using namespace std;
int main(void)
{
float a, b, c, x1, x2, root;
complex<float> z;
&n......
多次方程根的求解(2008-08-27 20:39:00)
摘要:
Solving Polynomial Equations with Complex Roots using Genetic Algorithms in VB.Net
By Mike Gold November 20, 2006
This article features a program in which the user can enter a polynomial equation and it will use GAs to determine the complex roots.
Author Rank:
Technologies: .NET Compact Framework, .NET 1.0/1.1,Visual Basic .NET
Total downloads :
113
Total page views :
6825
Rating :
0/5
This article has been rated :
0 times
Add to Technorati Digg This Add to del.icio.us
Download Files
GARootSolver.zip
Sponsored by
var pubId=11255;
var siteId=11256;
var kadId=7780;
var kadwidth=336;
var kadheight=280;
var kadtype=1;
Looking......
如何通过VB.NET获取网卡地址(2008-08-23 10:04:00)
摘要:如何通过VB.NET获取网卡地址
开发者在线 Builder.com.cn 更新时间:2007-09-09作者:网奇 来源:网奇
本文关键词: VB.NET 网卡地址
程序语言:Microsoft Visual Basic 4.0,5.0,6.0
运行平台:WINDOWS
功能描述:IPX和NETBIOS接口需要网络地址。该文通过详细的步骤演示了如何通过VB获取网卡地址。
步骤:
1)在Visual Basic生成标准的EXE文件。缺省创建 Form1。
2)在Form1中添加一命令按钮,缺省名为Command1。
3)把下列代码放到Form1中说明部分。
Option Explicit
Private Const NCBASTAT = &H33
Private Const NCBNAMSZ = 16
Private Const HEAP_ZERO_MEMORY = &H8
Private Const HEAP_GENERATE_EXCEPTIONS = &H4
Private Const NCBRESET = &H32
Private Type NCB
ncb_command As Byte 'Integer
ncb_retcode As Byte 'Integer
ncb_lsn As Byte 'Integer
ncb_num As Byte ' Integer
ncb_buffer As Long 'String
ncb_length As Integer
ncb_callname As String * NCBNAMSZ
ncb_name As String * NCBNAMSZ
ncb_rto As Byte 'Integer
ncb_sto As Byte ' Integer
ncb_post As Long
ncb_lana_num As Byte 'In......
VB.Net中应用ArrayList实例(2008-08-23 10:03:00)
摘要:VB.Net中应用ArrayList实例
开发者在线 Builder.com.cn 更新时间:2007-09-09作者:塞北的雪 来源:Csdn
本文关键词: VB.NET ArrayList
ArrayList 就是数组列表,它位于System.Collections名称空间下,是集和类型。与ArrayList 同胞的还有一个List,他们的实用很相似。这里我们只介绍一些关于ArrayList的一些东东。
ArrayList有三个构造器:
ArrayList()
ArrayList(int32)
ArrayList(ICollection)
一个简单的例子如下:
Dim t As New ArrayList()
t.Add("Northsnow")
Dim d As New Collection
d.Add("塞北的雪")
d.Add("http://blog.csdn.net/precipitant")
t.AddRange(d)
For Each aa As String In t
MsgBox(aa.ToString())
Next '会依次输出:
'Northsnow
'塞北的雪
'http://blog.csdn.net/precipitant
ArrayList的构造器可以接受一个集合,例子如下:
Dim d As New Collection
d.add("Northsnow")
d.Add("塞北的雪")
d.Add("http://blog.csdn.net/precipitant")
Dim t As New ArrayList(d)
Dim sb As New System.Text.StringBuilder()
If t.Count > 0 Then
sb.Append("ArrayList中共有 成员 ")
sb.Append(t.C......
在VB.NET中改变显示器的分辨率(2008-08-23 10:02:00)
摘要:在VB.NET中改变显示器的分辨率
开发者在线 Builder.com.cn 更新时间:2007-09-10作者:.NET文档 来源:.NET文档
本文关键词: VB.NET 显示器 分辨率
在vb.net中,我们很容易获得显示器的分辩率,但是,要改变显示器的分辩率就比较麻烦了。由于.net的类库没有将enumdisplaysettings 和ChangeDisplaySettings这两个API函数进行封装,但是我们得调用它们函数,相对于VB6来说,VB.NET调用API函数是有一些小的改动!
下面,我们就尝试一下在vb.net中,使用这两个api函数。
新建一个项目,在form1上添加两个按钮,一个名为btngetdisp,将其text属性设置为“得到分辩率”;另一个按钮名为btnsetdisp,text属性为“设置分辩率”。然后在代码窗口里添加以下代码:
private Const CCDEVICENAME As Short = 32
private Const CCFORMNAME As Short = 32
private Const DM_PELSWIDTH As Integer = &H80000
private Const DM_PELSHEIGHT As Integer = &H100000
'刷新频率常量
private Const DM_DISPLAYFREQUENCY As Integer = &H400000
'调用API函数
private Declare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Integer, ByVal iModeNum As Integer, ByRef lpDevMode As DEVMODE) As Boolean
'调用api函数
private Declare Function ChangeDisplaySettings Lib "user32" Alias "ChangeD......
VB.Net查找程序的前一个运行结果(2008-08-23 10:01:00)
摘要:VB.Net查找程序的前一个运行结果
开发者在线 Builder.com.cn 更新时间:2007-09-10作者:中国IT实验室 来源:中国IT实验室
本文关键词: VB.NET 程序 运行结果
可以从获取当前过程的名称为开始,你可以通过调用过程对象的GetCurrentProcess方法来达到这一目的。这是一个公共的方法,所以无需建立一个过程对象的实例。
Dim strProcessName As String
strProcessName = Diagnostics.Process.GetCurrentProcess.ProcessName
下一步即为查找当前匹配的过程。可以使用GetProcessesByName方法达到这一要求。还有另一个过程是对象的静态方法,它使用过程的名称,返回所有的匹配过程。
If Diagnostics.Process.GetProcessesByName( _
strProcessName).Length > 1 Then
注释:More than one instance was found
End If
如果这是程序的第一个运行结果,则应该只有一个匹配过程。如果能够找到多个运行结果,那么一定是程序的多个版本在运行之中。
当你想确认用户只运行程序的一个结果时,这一方法非常有用。
查看本文来源......