This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
for i in range(0, 360+10, 10): | |
cos = math.cos(math.radians(i)) | |
sin = math.sin(math.radians(i)) | |
print(i, cos, sin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
print(math.cos(math.radians(0))) | |
print(math.cos(math.radians(90))) | |
print(math.sin(math.radians(0))) | |
print(math.sin(math.radians(90))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def log_plus(a, b): | |
print(f'{math.log(a, 10)} + {math.log(b, 10)} = {math.log(a * b, 10)}') | |
log_plus(2, 2) | |
log_plus(2, 3) | |
log_plus(5, 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
print(math.log(1, 10)) | |
print(math.log(10, 10)) | |
print(math.log(100, 10)) | |
print(math.log(1, 2)) | |
print(math.log(2, 2)) | |
print(math.log(4, 2)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def get_e(): | |
n = 10000 | |
return math.pow(1 + (1 / n), n) | |
print(get_e()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @pip numpy | |
import numpy as np | |
print(np.array([1, 2, 3]) * 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMakeFiles | |
Testing | |
cmake_install.cmake | |
CMakeCache.txt | |
CTestTestfile.cmake | |
Makefile | |
*.a | |
*.obj | |
*.lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
set(CMAKE_BUILD_TYPE Debug) | |
add_executable(emc_sample main.cpp) | |
if (EMSCRIPTEN) | |
set(CMAKE_EXECUTABLE_SUFFIX ".html") # デフォルトでは.js | |
endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
std::cout << "Hello World" << std::endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}/dist_electron", | |
"program": "${workspaceRoot}/dist_electron/bundled/background.js", | |
"preLaunchTask": "npm: electron:build", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", |
NewerOlder