Dim x1, x2
Private Function f(a, b, fun) 'x()初值,目标函数多项式
x1 = a
x2 = b
f = fun
End Function
Private Sub Command1_Click()
Label1.Caption = f(2, 2, x1 ^ 2 + 2 * x1 * x2 + x2 ^ 2)
End Sub
阅读全部
|
东方淑通
贴于 2013年5月21日 20:43
hide
bbsi
#include<iostream>
#include<string>
using namespace std;
class Document
{
public:
Document(){};
~Document();
Document(char *name);
char *Name;
void PrintNameOf();
};
......................
阅读全部
|
新手多多帮助
贴于 2013年5月21日 11:01
hide
bbsi
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
void main()
{
int h,m,s,a,b;
for(h=00;h<24;h++)
{
for(m=00;m<60;m++)
{
for(s=00;s<60;s++)
{
......................
阅读全部
|
《挑灯看书》
贴于 2013年5月19日 16:05
hide
bbsi
#include<stdio.h>
#include<time.h>
long Fib_rec(int n)
{
if(n==0||n==1)return(1);
else return(Fib_rec(n-1)+Fib_rec(n-2));
}
long Fib_ite(int n)
{
long fib1,fib2,fib;
int i;
fib=1;
......................
阅读全部
|
fightingaaa
贴于 2013年5月17日 19:52
hide
bbsi
Function sum%(b%())
Dim i%
For i = LBound(b) To UBound(b)
If b(i) < 0 Then
sum = sum + b(i)
End If
Next i
End Function
Private Sub Form_Click()
Dim a%(10), s%, i%
For i = 1 To 10
a(i) = Int(Rnd * 100) - 50
......................
阅读全部
|
无__dao
贴于 2013年5月17日 14:53
hide
bbsi
/* Program 1.1 Your Very First C Program - Displaying Hello World */
#include <stdio.h>
int main(void)
{
printf("Hello world! ");
return 0;
}
阅读全部
|
新绿清风
贴于 2013年5月17日 14:03
hide
bbsi
#incude <stdio.h>
int FindMaxNumber(int x,int y);
void main()
{
int x = 0,y =0 ;
scanf("%d %d",&x,&y);
printf("%d\n",FindMaxNumber(x,y));
}
int FindMaxNumber(int x,int y)
{
......................
阅读全部
|
一介白书生
贴于 2013年5月16日 21:57
hide
bbsi
求帮忙求一下x1和h的幅频特性曲线,初始值随便取,谢谢啊...
ms=200;
ks=30000;
mu=40;
Fm=200;
kt=181000;
c0=1000;
B=100;
h=1;
%FM=(Fm*(1-exp(-B*(x(2)-x(4))))/(1+exp(-B*(x(2)-x(4)))));
xr=0.01*sin(2*pi*h*t);
......................
阅读全部
|
matlab777
贴于 2013年5月16日 17:15
hide
bbsi
(七) package test1;
public class syuct1 {
public static void main(String[]args){
int i;
for(i=1;i<=1;++i){
System.out.println(" *");
System.out.println(" * *");
System.out.println(" * *");
System.out.println("* *");
System.out.println(" * *");
System.out.println(" * *");
System.out.println(" *");
......................
阅读全部
|
lxyhcm
贴于 2013年5月15日 22:24
hide
bbsi
#include <stdio.h>
void main()
{
int max(int x,int y);
int a,b,c;
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("max=%d\n",c);
}
int max(int x,int y)
{
int z;
......................
阅读全部
|
小百科
贴于 2013年5月13日 09:27
hide
bbsi