代码搜索结果
找到约 25,001 项符合
Power 的代码
n2to10.m
%将2进制数转换为10进制数
function x=n2to10(s);
bn=size(s,2);
x=s(bn);
for i=1:bn-1
x=x+s(bn-i)*power(2,i);
end
objf.m
%计算适应度函数
function [f,p]=objf(s);
inn=size(s,1); %有inn个个体
bn=size(s,2); %个体长度为bn
for i=1:inn
x=n2to10(s(i,:)); %讲二进制转换为十进制
xx=-1.0+x*3/(power(2,bn)-1); %转化为[-1,2]区间的实数
f(i)
setpwr.sh
#!/bin/bash
# This script can be used to quickly switch on usb suspend
# power saving mode on the Option modem in sysfs
#
# checking for root
USERID=`id -u`
if [ "$USERID" != "0" ]
then
echo "Need
userbean.java
import java.sql.*;
import javax.swing.*;
public class UserBean extends JPanel
{
private String username;
private String pwd;
private String power;
Connection con=null;
Statement smt=null;
spower.m
function p=spower(x)
% p=spower(x)
%SPOWER returns the power in signal x
p=(norm(x)^2)/length(x);
show_pow.c
#include
#include
void main (void)
{
int power;
for (power = -2; power
eacpower.m
function eacpower(P0, E, V, X)
% This program obtains the power angle curve for a one-machine system
% during normal operation. Using equal area criterion the maximum input
% power that can be sudd
chp11ex4.m
% (a) Initial real power P0 = 0.60
P0 = 0.6; E = 1.35; V = 1.0; X = 0.65;
eacpower(P0, E, V, X)
h=figure;
% (b) Zero initial power
P0 = 0;
eacpower(P0, E, V, X)
454.sql
select mgr, power(mgr,2),power(mgr,3) from scott.emp;
5-2.c
#define N 2
main()
{
int m, n;
system("cls");
printf("%40s\n", "************");
printf("%40s\n", "Calculate the n power of m");
printf("%40s\n", "************");
printf("%40s\n", "Please