Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
CS 201
#include <bits/stdc++.h> using namespace std; #define pi 3.1415 #define c 3e8 #define h 6.626e-34 #define G 6.67e-11 #define kb 1.38e-23 #define NA 6.022e23 #define me 9.11e-31 #define hcut h/(2*pi) #define mp 1836*me #define mn 1836*me #define let long double long double toEv(long double E) { return E / (1.6e-19); } let hb(let x) { return (hcut / (2 * x)); } let KEfromP(let p, let m) { return (p*p)/(2*m); } int main() { /* long double dx = 5.3e-11; long double dp = hcut / (2 * dx); cout << toEv((dp * dp) / (2 * me)) << " eV" << "\n"; */ /* let x = 10e-15; let p = hb(x); cout << toEv(KEfromP(p, mp)) << "\n"; */ /* let t = 1e-8; let E = hb(t); let f = E / h; cout << f << "\n"; */ /* let v = 1.05e4; let dv = v * 0.01 / 100; // mdvdx = hcut/2; cout << hb(dv*me) << "\n"; */ }
run
|
edit
|
history
|
help
0
ExceptInviteClass
Palindromo
Test Swap Functions
Matrix
Policy based smart pointer
dia
selection_sort
Вариант универсального указателя.
is_sorted_30-Seconds-of-C++
c++