The document discusses sinusoidal waves and polar coordinates. It contains code examples that generate sinusoidal waves by plotting ellipses along the y-axis using sinusoidal functions of the theta variable. The theta variable is incremented each frame to animate the waves. It also contains an explanation of polar coordinates using the notation (r*cos(θ),r*sin(θ)) to represent a point in polar space. Finally, it shows code for circular motion by calculating x and y coordinates based on polar coordinates and animating theta to rotate around a circle.
トピックス:再帰, スタック, プログラミング, c
C プログラミング入門 (スライド資料とプログラム例)(Visual Studio 2019 を使用)(全15回)
https://www.kkaneko.jp/pro/adp/index.html
金子邦彦研究室ホームページ
https://www.kkaneko.jp/index.html
The document describes code for displaying and formatting text in Processing. It includes code to set up a sketch, draw text centered horizontally and vertically on a white background, draw lines to intersect at the center, and draw the same text aligned to the right, center, and with different textAlign settings.
2. 関数について
#include<stdio.h>
int sum(int a, int b);
int main(void){
int result = 0;
result = sum(2,3);
printf(“result = %dn”,result);
return 0;
}
int sum(int a,int b){
int c = 0;
c = a + b;
return c;
}
3. 関数について
#include<stdio.h>
int sum(int a, int b);
int main(void){
int result = 0;
result = sum(2,3);
printf(“result = %dn”,result);
return 0;
}
int sum(int a,int b){
int c = 0;
c = a + b;
return c;
}
main関数→sum関数