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
| $ npm i --save express mongodb && npm i --save-dev @types/express @types/mongodb @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser dotenv eslint nodemon ts-node typescript |
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
| $ mkdir server && cd server && npm init -y |
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
| { | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "prettier.useTabs": true, | |
| "typescript.updateImportsOnFileMove.enabled": "always", | |
| "prettier.trailingComma": "none", | |
| "eslint.alwaysShowStatus": true, | |
| "eslint.debug": true, | |
| "eslint.validate": [ | |
| "javascript", | |
| "javascriptreact", |
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("Solving for theta of force components x and y.") | |
| x=input("input force component x:") | |
| y=input("input force component y:") | |
| x=float(x) | |
| y=float(y) | |
| z=math.atan(y/x) | |
| theta=math.degrees(z) | |
| w=((x**2+y**2)**0.5) | |
| print(w) |
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("Solving for theta of force components x and y.") | |
| x=input("input force component x:") | |
| y=input("input force component y:") | |
| x=float(x) | |
| y=float(y) | |
| z=math.atan(y/x) | |
| theta=math.degrees(z) | |
| print(theta) |
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
| print("Solving for the hypotenuse, c, of a right triangle.") | |
| a=input("input length of a:") | |
| b=input("input length of b:") | |
| a=float(a) | |
| b=float(b) | |
| c=((a**2+b**2)**0.5) | |
| print(c) |
NewerOlder