• 検索結果がありません。

cc -o testrun test.c 2

N/A
N/A
Protected

Academic year: 2021

シェア "cc -o testrun test.c 2"

Copied!
3
0
0

読み込み中.... (全文を見る)

全文

(1)

(2004 5E) 2004.06.17

1. UNIX

1.1 ( 1 )

(1) /D1/D3/f1

(2) ../../../D1/D3/f1

1.2 ( 1 )

(1) . (2) ..

(3) /

1.3 ( 1 )

(1) pwd (3) cd ..

(5) cd

(7) rmdir hoge (9) rm hoge

(2) ls (4) cd hoge (6) mkdir hoge (8) rm -rf hoge (10) mv hoge ../huga

1.4 (1:3 2: 2 )

(1) .c

sample.c

(2)

[ ] cc -lm -o testrun test.c [ ] cc -o testrun test.c

2. C

2.1 ( 3 )

(1) /* */

(2)

(2)

2.2 (1:3 2: 2 3: 2 )

(1)

(2)

[ ] x [ ] y, theta, a, b

(3)

[ ] char aa, bb; [ ] int i, j, k, l, m; [ ] double A, E, F;

2.3 ( 3 )

(1)

if(i<=100){

y=sin(x);

i=1;

}else{

y=cos(x);

i=-1;

}

(2)

for(i=100;i<=100;i++){

sum+=i;

}

(3)

while(i<=100){

sum+=i;

i++;

}

2.4 (1:3 2: 2 ) (1)

(2)

[ ] int a[101][101] [ ] double a[11][51][101]

2.5 ( 2 ) (1) main f g (1) main f g

2.6 ( 2 )

[ ] FILE [ ] fopen [ ] calresult [ ] fprintf [ ] fclose

(3)

3.

3.1 ( 15 )

#include <stdio.h>

int main() {

printf("Hello world\n");

printf("Hello Akita");

return(0);

}

3.3 ( 7 )

#include <stdio.h>

int main(){

int i,j;

double e,x;

FILE *out;

out=fopen("result.txt","w");

e=1.0;

x=1.0;

for(i=1;i<=20;i++){

if(i != 1){

x/=(i-1);

e+=x;

}

printf("%d%\t%.20f\n",i,e);

fprintf(out,"%d%\t%.20f\n",i,e);

}

fclose(out);

return(0);

}

3.2 ( 7 )

#include <stdio.h>

#include <math.h>

double f(double x);

double g(double x);

int main(){

int i, n=100;

double x, pi=4.0*atan(1.0);

for(i=0;i<=n;i++){

x=pi*i/n;

printf("%lf\t%lf\t%lf\n",x,f(x),g(x));

}

return(0);

}

double f(double x){

return(x-pow(x,3)/6.0+pow(x,5)/120-pow(x,7)/5040);

}

double g(double x){

return(1-pow(x,2)/2.0+pow(x,3)/24-pow(x,6)/720);

}

参照

関連したドキュメント

Found in the diatomite of Tochibori Nigata, Ureshino Saga, Hirazawa Miyagi, Kanou and Ooike Nagano, and in the mudstone of NakamuraIrizawa Yamanashi, Kawabe Nagano.. cal with

Azenhas, The admissible interval for the invariant factors of a product of matrices, Linear and Multilinear Algebra 46 (1999), 51-99.

S49119 Style Classic Flexor Grade 7.0 Fixation Manual Weight 215g Size range 35 - 52 TECHNOLOGY-HIGHLIGHTS. •

For a brief history of the Fekete- Szeg¨o problem for class of starlike, convex, and close-to convex functions, see the recent paper by Srivastava et

Key words and phrases: Linear system, transfer function, frequency re- sponse, operational calculus, behavior, AR-model, state model, controllabil- ity,

T Taiwan General Scholastic Ability Test (GSAT) or Department Required Test Thailand Ordinary National Educational Test(O-net), General Aptitude Test. (GAT), Professional

T Taiwan General Scholastic Ability Test (GSAT) or Department Required Test Thailand Ordinary National Educational Test(O-net), General Aptitude Test. (GAT), Professional

のようにすべきだと考えていますか。 やっと開通します。長野、太田地区方面