カテゴリ:PCとか?( 93 )

 

dft.c

#include <stdio.h>
#include <math.h>

int main()
{
int N=4;
double xr[N], xi[N], yr[N], yi[N], f;
int n, k;

for(n=0; n<N; n++){
xr[n]=0.0;
xi[n]=0.0;
}
xi[0]=N;

for(k=0; k<N; k++){
yr[k]=yi[k]=0.0;
for(n=0; n<N; n++){
f=2*M_PI/N*n*k;
yr[k] += xr[n]*cos(f)+xi[n]*sin(f);
yi[k] += -xi[n]*sin(f)+xr[n]*cos(f);
}
}

for(k=0; k<N; k++) printf("Y[%d]=%f+j %f\n, k, yr[k], yi[k]);
}
[PR]

by Rhapsodie | 2008-05-29 05:59 | PCとか?  

vmxメモ

ドライブー

More
[PR]

by Rhapsodie | 2008-04-19 16:14 | PCとか?  

めもめも

qemu-img.exe create -f vmdk c:\vmware\fc8.vmdk 20G


fc8.vmx

config.version = "8"
virtualHW.version = "3"
memsize = "512"
ide0:0.present = "TRUE"
ide0:0.fileName = "fc8.vmdk"

ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.fileName = ""
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Fedora Core8"
guestOS = "other26xlinux"
nvram = "fc6.nvram"
scsi0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 4a 15 2a 3f 49 70-03 c9 82 f3 02 82 dc 4c"
uuid.bios = "56 4d 4a 15 2a 3f 49 70-03 c9 82 f3 02 82 dc 4c"
ide1:0.autodetect = "TRUE"
ethernet0.generatedAddress = "00:0c:29:82:dc:4c"
ethernet0.generatedAddressOffset = "0"
checkpoint.vmState = "fc8.vmss"
tools.remindInstall = "TRUE"
ide0:0.redo = ""
[PR]

by Rhapsodie | 2008-04-16 21:27 | PCとか?