£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² –

Similar documents
£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裱£²²ó ¡Ý½ÉÂꣲ¤Î²òÀ⡤±é½¬£²¡Ý

£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè10²ó – ¿¹à¼°¤Îɾ²Á¡§¥¢¥ë¥´¥ê¥º¥à¤Î²þÁ± –

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裶²ó ¨¡ À©¸æ¹½Â¤¡§·«¤êÊÖ¤· ¨¡

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡

/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v

θ (t) ω cos θ(t) = ( : θ, θ. ( ) ( ) ( 5) l () θ (t) = ω sin θ(t). ω := g l.. () θ (t) θ (t)θ (t) + ω θ (t) sin θ(t) =. [ ] d dt θ (t) ω cos θ(t


2 P.S.P.T. P.S.P.T. wiki 26

Gmech08.dvi

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

C 2 / 21 1 y = x 1.1 lagrange.c 1 / Laglange / 2 #include <stdio.h> 3 #include <math.h> 4 int main() 5 { 6 float x[10], y[10]; 7 float xx, pn, p; 8 in

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.

ex01.dvi

新版明解C言語 実践編

DKA ( 1) 1 n i=1 α i c n 1 = 0 ( 1) 2 n i 1 <i 2 α i1 α i2 c n 2 = 0 ( 1) 3 n i 1 <i 2 <i 3 α i1 α i2 α i3 c n 3 = 0. ( 1) n 1 n i 1 <i 2 < <i

( ) 2.1. C. (1) x 4 dx = 1 5 x5 + C 1 (2) x dx = x 2 dx = x 1 + C = 1 2 x + C xdx (3) = x dx = 3 x C (4) (x + 1) 3 dx = (x 3 + 3x 2 + 3x +

6 6.1 sound_wav_files flu00.wav.wav 44.1 khz 1/44100 spwave Text with Time spwave t T = N t N 44.1 khz t = 1 sec j t f j {f 0, f 1, f 2,, f N 1

p = 1, 2, cos 2n + p)πj = cos 2nπj 2n + p)πj, sin = sin 2nπj 7.1) f j = a ) 0 + a p + a n+p cos 2nπj p=1 p=0 1 + ) b n+p p=0 sin 2nπj 1 2 a 0 +

重力方向に基づくコントローラの向き決定方法

[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±

86 8 MPIBNCpack 15 : int n, myid, numprocs, i; 16 : double pi, start_x, end_x; 17 : double startwtime = 0.0, endwtime; 18 : int namelen; 19 : char pro

P02.ppt

#A A A F, F d F P + F P = d P F, F y P F F x A.1 ( α, 0), (α, 0) α > 0) (x, y) (x + α) 2 + y 2, (x α) 2 + y 2 d (x + α)2 + y 2 + (x α) 2 + y 2 =

tuat1.dvi

実際の株価データを用いたオプション料の計算

double float

KENZOU

Gmech08.dvi

2 T ax 2 + 2bxy + cy 2 + dx + ey + f = 0 a + b + c > 0 a, b, c A xy ( ) ( ) ( ) ( ) u = u 0 + a cos θ, v = v 0 + b sin θ 0 θ 2π u = u 0 ± a


C



ex01.dvi

1 ( ) 1.1 (convert.sh) (18GHz 26GHz) C (convert.c, convert1.c) mesure-ryudai convert.sh #!/bin/sh # file1 file1= ls -1 $1 # file1 data for data in $fi

1 4 2 EP) (EP) (EP)

f(x) = x (1) f (1) (2) f (2) f(x) x = a y y = f(x) f (a) y = f(x) A(a, f(a)) f(a + h) f(x) = A f(a) A x (3, 3) O a a + h x 1 f(x) x = a

A (1) = 4 A( 1, 4) 1 A 4 () = tan A(0, 0) π A π

08-Note2-web

Original : Hello World! (0x0xbfab85e0) Copy : Hello World! (0x0x804a050) fgets mstrcpy malloc mstrcpy (main ) mstrcpy malloc free fgets stream 1 ( \n

曲面のパラメタ表示と接線ベクトル

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

1 No.1 5 C 1 I III F 1 F 2 F 1 F 2 2 Φ 2 (t) = Φ 1 (t) Φ 1 (t t). = Φ 1(t) t = ( 1.5e 0.5t 2.4e 4t 2e 10t ) τ < 0 t > τ Φ 2 (t) < 0 lim t Φ 2 (t) = 0

新・明解C言語 ポインタ完全攻略

115 9 MPIBNCpack 9.1 BNCpack 1CPU X = , B =

ex14.dvi

1 u t = au (finite difference) u t = au Von Neumann

(3) (2),,. ( 20) ( s200103) 0.7 x C,, x 2 + y 2 + ax = 0 a.. D,. D, y C, C (x, y) (y 0) C m. (2) D y = y(x) (x ± y 0), (x, y) D, m, m = 1., D. (x 2 y

2009 IA 5 I 22, 23, 24, 25, 26, (1) Arcsin 1 ( 2 (4) Arccos 1 ) 2 3 (2) Arcsin( 1) (3) Arccos 2 (5) Arctan 1 (6) Arctan ( 3 ) 3 2. n (1) ta

5.. z = f(x, y) y y = b f x x g(x) f(x, b) g x ( ) A = lim h 0 g(a + h) g(a) h g(x) a A = g (a) = f x (a, b)

‚æ4›ñ

( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h>

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

卒 業 研 究 報 告.PDF

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

コンピュータ概論

XMPによる並列化実装2

C 2 2.1? 3x 2 + 2x + 5 = 0 (1) 1

1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main

II Karel Švadlenka * [1] 1.1* 5 23 m d2 x dt 2 = cdx kx + mg dt. c, g, k, m 1.2* u = au + bv v = cu + dv v u a, b, c, d R

1.ppt

r07.dvi

1. ( ) SPH 1. 1: 2: 2.

x(t) + t f(t, x) = x(t) + x (t) t x t Tayler x(t + t) = x(t) + x (t) t + 1 2! x (t) t ! x (t) t 3 + (15) Eular x t Teyler 1 Eular 2 Runge-Kutta

pdf

ohp07.dvi

S I. dy fx x fx y fx + C 3 C vt dy fx 4 x, y dy yt gt + Ct + C dt v e kt xt v e kt + C k x v k + C C xt v k 3 r r + dr e kt S Sr πr dt d v } dt k e kt

( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1

num3.dvi

PowerPoint プレゼンテーション

(search: ) [1] ( ) 2 (linear search) (sequential search) 1

file"a" file"b" fp = fopen("a", "r"); while(fgets(line, BUFSIZ, fp)) {... fclose(fp); fp = fopen("b", "r"); while(fgets(line, BUFSIZ, fp)) {... fclose


v_-3_+2_1.eps

2011de.dvi

08 p Boltzmann I P ( ) principle of equal probability P ( ) g ( )g ( 0 ) (4 89) (4 88) eq II 0 g ( 0 ) 0 eq Taylor eq (4 90) g P ( ) g ( ) g ( 0


PowerPoint プレゼンテーション

S I. dy fx x fx y fx + C 3 C dy fx 4 x, y dy v C xt y C v e kt k > xt yt gt [ v dt dt v e kt xt v e kt + C k x v + C C k xt v k 3 r r + dr e kt S dt d

(1) D = [0, 1] [1, 2], (2x y)dxdy = D = = (2) D = [1, 2] [2, 3], (x 2 y + y 2 )dxdy = D = = (3) D = [0, 1] [ 1, 2], 1 {

comment.dvi

2004

Windows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:

C言語によるアルゴリズムとデータ構造

all.dvi

数学演習:微分方程式

新・明解C言語 実践編

M3 x y f(x, y) (= x) (= y) x + y f(x, y) = x + y + *. f(x, y) π y f(x, y) x f(x + x, y) f(x, y) lim x x () f(x,y) x 3 -

main

II A A441 : October 02, 2014 Version : Kawahira, Tomoki TA (Kondo, Hirotaka )

() n C + n C + n C + + n C n n (3) n C + n C + n C 4 + n C + n C 3 + n C 5 + (5) (6 ) n C + nc + 3 nc n nc n (7 ) n C + nc + 3 nc n nc n (

Chap11.dvi

WinHPC ppt

) a + b = i + 6 b c = 6i j ) a = 0 b = c = 0 ) â = i + j 0 ˆb = 4) a b = b c = j + ) cos α = cos β = 6) a ˆb = b ĉ = 0 7) a b = 6i j b c = i + 6j + 8)

数値計算:常微分方程式

5.. z = f(x, y) y y = b f x x g(x) f(x, b) g x ( ) A = lim h g(a + h) g(a) h g(x) a A = g (a) = f x (a, b)

2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1


Transcription:

(2018) 11 2018 12 13

2 g v dv x dt = bv x, dv y dt = g bv y (1) b v 0 θ x(t) = v 0 cos θ ( 1 e bt) (2) b y(t) = 1 ( v 0 sin θ + g ) ( 1 e bt) g b b b t (3) 11 ( ) p14

2 1 y 4 t m y > 0 y < 0 t m1 h = 0001 2 t m (3) 0 [ t m1 h, t m1 ] t m2 3 t m2 (3) y(t m2 ) 0 4 x(t m )

2 4 rk4fixo rk4fixv6 main x(t), y(t) g = 98 m s 2, b = 10 m 1, v 0 = 98 m s 1 θ mod 60 +2020 79

2 θ = 26 h 0001 2 10 10 13 $ /hw2018a-2 Th = 26 tm = 07780000000000 t = 07770948429848, y = 7238654e-13 t = 07770948429849, y = 3916867e-13 t = 07770948429850, y = 5950795e-14 t = 07770948429851, y = -2726708e-13 t = 07770948429852, y = -6039613e-13 xm = 47587109588997

#include "rk4fixh" #define B 10 #define G 98 #define V0 98 #define EPS 1E-13 double f(double t, double g, double b, double v) return (v + g / b) / b * (1 - exp(-b * t)) - g / b * t; vec6 mov(double t, double r[6]) vec6 ret = 0 ; retf[1] = r[4]; retf[4] = -G - B * r[4]; return ret; int main(int argc, char **argv) int deg = 66, i; double t = 0, r[6] = 0, h = 0001; double tl, tu, dt, tm, vx, vy, Th; if (argc > 1) deg = atof(argv[1]); deg = (deg % 60) + 20; printf("th = %d\n", deg); Th = M_PI / 180 * deg; vy = V0 * sin(th); vx = V0 * cos(th); r[4] = vy; do rk4fixv6(mov, t, r, h); t += h; while (r[1] >= 00); printf("tm = %13f\n", t); tl = tm - h; tu = tm; do dt = tu - tl; t = (tu + tl) / 2; if (f(t, G, B, vy) * f(tu, G, B, vy) > 0) tu = t; else tl = t; while (dt > EPS); for (i = -2; i < 3; i++) t = tm + i * EPS; printf("t = %13f, y = %6e\n", t, f(t, G, B, vy)); printf("xm = %13f\n", f(tm, 0, B, vx)); return 0;

#include "rk4fixh" #define B 10 #define G 98 #define V0 98 #define EPS 1E-13 double f(double t, double g, double b, double v) return (v + g / b) / b * (1 - exp(-b * t)) - g / b * t; vec6 mov(double t, double r[6]) vec6 ret = 0 ; retf[1] = r[4]; retf[4] = -G - B * r[4]; return ret; int main(int argc, char **argv) int deg = 66, i; double t = 0, r[6] = 0, h = 0001; double tl, tu, dt, tm, vx, vy, Th; if (argc > 1) deg = atof(argv[1]); deg = (deg % 60) + 20; printf("th = %d\n", deg); Th = M_PI / 180 * deg; vy = V0 * sin(th); vx = V0 * cos(th); r[4] = vy; do rk4fixv6(mov, t, r, h); t += h; while (r[1] >= 00); printf("tm = %13f\n", t); tl = tm - h; tu = tm; do dt = tu - tl; t = (tu + tl) / 2; if (f(t, G, B, vy) * f(tu, G, B, vy) > 0) tu = t; else tl = t; while (dt > EPS); for (i = -2; i < 3; i++) t = tm + i * EPS; printf("t = %13f, y = %6e\n", t, f(t, G, B, vy)); printf("xm = %13f\n", f(tm, 0, B, vx)); return 0;

#include "rk4fixh" #define B 10 #define G 98 #define V0 98 #define EPS 1E-13 double f(double t, double g, double b, double v) return (v + g / b) / b * (1 - exp(-b * t)) - g / b * t; vec6 mov(double t, double r[6]) vec6 ret = 0 ; retf[1] = r[4]; retf[4] = -G - B * r[4]; return ret; int main(int argc, char **argv) int deg = 66, i; double t = 0, r[6] = 0, h = 0001; double tl, tu, dt, tm, vx, vy, Th; if (argc > 1) deg = atof(argv[1]); deg = (deg % 60) + 20; printf("th = %d\n", deg); Th = M_PI / 180 * deg; vy = V0 * sin(th); vx = V0 * cos(th); r[4] = vy; do rk4fixv6(mov, t, r, h); t += h; while (r[1] >= 00); printf("tm = %13f\n", t); tl = tm - h; tu = tm; do dt = tu - tl; t = (tu + tl) / 2; if (f(t, G, B, vy) * f(tu, G, B, vy) > 0) tu = t; else tl = t; while (dt > EPS); for (i = -2; i < 3; i++) t = tm + i * EPS; printf("t = %13f, y = %6e\n", t, f(t, G, B, vy)); printf("xm = %13f\n", f(tm, 0, B, vx)); return 0;

#include "rk4fixh" #define B 10 #define G 98 #define V0 98 #define EPS 1E-13 double f(double t, double g, double b, double v) return (v + g / b) / b * (1 - exp(-b * t)) - g / b * t; vec6 mov(double t, double r[6]) vec6 ret = 0 ; retf[1] = r[4]; retf[4] = -G - B * r[4]; return ret; int main(int argc, char **argv) int deg = 66, i; double t = 0, r[6] = 0, h = 0001; double tl, tu, dt, tm, vx, vy, Th; if (argc > 1) deg = atof(argv[1]); deg = (deg % 60) + 20; printf("th = %d\n", deg); Th = M_PI / 180 * deg; vy = V0 * sin(th); vx = V0 * cos(th); r[4] = vy; do 0 > y rk4fixv6(mov, t, r, h); t += h; while (r[1] >= 00); printf("tm = %13f\n", t); tl = tm - h; tu = tm; do dt = tu - tl; t = (tu + tl) / 2; if (f(t, G, B, vy) * f(tu, G, B, vy) > 0) tu = t; else tl = t; while (dt > EPS); for (i = -2; i < 3; i++) t = tm + i * EPS; printf("t = %13f, y = %6e\n", t, f(t, G, B, vy)); printf("xm = %13f\n", f(tm, 0, B, vx)); return 0;

#include "rk4fixh" #define B 10 #define G 98 #define V0 98 #define EPS 1E-13 double f(double t, double g, double b, double v) return (v + g / b) / b * (1 - exp(-b * t)) - g / b * t; vec6 mov(double t, double r[6]) vec6 ret = 0 ; retf[1] = r[4]; retf[4] = -G - B * r[4]; return ret; int main(int argc, char **argv) int deg = 66, i; double t = 0, r[6] = 0, h = 0001; double tl, tu, dt, tm, vx, vy, Th; if (argc > 1) deg = atof(argv[1]); deg = (deg % 60) + 20; printf("th = %d\n", deg); Th = M_PI / 180 * deg; vy = V0 * sin(th); vx = V0 * cos(th); r[4] = vy; do 0 > y rk4fixv6(mov, t, r, h); t += h; while (r[1] >= 00); printf("tm = %13f\n", t); tl = tm - h; tu = tm; do 0 dt = tu - tl; t = (tu + tl) / 2; if (f(t, G, B, vy) * f(tu, G, B, vy) > 0) tu = t; else tl = t; while (dt > EPS); for (i = -2; i < 3; i++) t = tm + i * EPS; printf("t = %13f, y = %6e\n", t, f(t, G, B, vy)); printf("xm = %13f\n", f(tm, 0, B, vx)); return 0;

#include "rk4fixh" #define B 10 #define G 98 #define V0 98 #define EPS 1E-13 double f(double t, double g, double b, double v) return (v + g / b) / b * (1 - exp(-b * t)) - g / b * t; vec6 mov(double t, double r[6]) vec6 ret = 0 ; retf[1] = r[4]; retf[4] = -G - B * r[4]; return ret; int main(int argc, char **argv) int deg = 66, i; double t = 0, r[6] = 0, h = 0001; double tl, tu, dt, tm, vx, vy, Th; if (argc > 1) deg = atof(argv[1]); deg = (deg % 60) + 20; printf("th = %d\n", deg); Th = M_PI / 180 * deg; vy = V0 * sin(th); vx = V0 * cos(th); r[4] = vy; do 0 > y rk4fixv6(mov, t, r, h); t += h; while (r[1] >= 00); printf("tm = %13f\n", t); tl = tm - h; tu = tm; do 0 dt = tu - tl; t = (tu + tl) / 2; if (f(t, G, B, vy) * f(tu, G, B, vy) > 0) tu = t; else tl = t; while (dt > EPS); for (i = -2; i < 3; i++) t = tm + i * EPS; printf("t = %13f, y = %6e\n", t, f(t, G, B, vy)); printf("xm = %13f\n", f(tm, 0, B, vx)); x(t m) return 0;

2 sin sin(x) double mysin( double x) x 1 π < x < π k = 16 sin x = k=1 ( 1) k 1 x 2k 1 (2k 1)! = x k=1 ( x 2 ) k 1 (2k 1)! 2 sin(x ± 2π) = sin(x ) π < x < π x

2 1 Horner k = 16 2 X X 10 2, X 10 1, X X = 62 $ /ex2018a-2 mysin( 6200) = -7391806966492211e-01 sin( 6200) = -7391806966492228e-01 mysin( 620) = -8308940281749616e-02 sin( 620) = -8308940281749640e-02 mysin( 062) = +5810351605373051e-01 sin( 062) = +5810351605373051e-01

2 wasedajp matuda-namio@aoniwasedajp 2 1Y17B999 2 12 13 10:30 ex2018a-2c