Add constants for a,b,c,e,f,g,k,l,m,p,s
This commit is contained in:
parent
f57565d780
commit
dbe054e51b
1 changed files with 23 additions and 23 deletions
|
@ -13,7 +13,7 @@ const main = () => {
|
||||||
// Callback: called when firstname is changed
|
// Callback: called when firstname is changed
|
||||||
const update_const = () => {
|
const update_const = () => {
|
||||||
const firstname = document.getElementById(input_name).value;
|
const firstname = document.getElementById(input_name).value;
|
||||||
const firstname_const = get_const(firstname.split(''));
|
const firstname_const = get_const(firstname.toLowerCase().split(''));
|
||||||
|
|
||||||
console.log(`output: ${firstname_const}`);
|
console.log(`output: ${firstname_const}`);
|
||||||
};
|
};
|
||||||
|
@ -29,44 +29,44 @@ const get_const = (letters = Array) => {
|
||||||
|
|
||||||
// Assign each letter to a const, fallback to 1 if no one has been found
|
// Assign each letter to a const, fallback to 1 if no one has been found
|
||||||
switch (letters) {
|
switch (letters) {
|
||||||
/* case 'a':
|
case 'a': // https://en.wikipedia.org/wiki/Artin%27s_conjecture_on_primitive_roots
|
||||||
const_data.push(); */
|
const_data.push(0.373955);
|
||||||
/* case 'b':
|
case 'b': // https://en.wikipedia.org/wiki/Backhouse%27s_constant
|
||||||
const_data.push(); */
|
const_data.push(1.456074);
|
||||||
/* case 'c':
|
case 'c': // https://en.wikipedia.org/wiki/Porter%27s_constant
|
||||||
const_data.push(); */
|
const_data.push(1.46707807943397547289);
|
||||||
/* case 'd':
|
/* case 'd':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'e':
|
case 'e': // https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Borwein_constant
|
||||||
const_data.push(); */
|
const_data.push(1.606695);
|
||||||
/* case 'f':
|
case 'f': // https://en.wikipedia.org/wiki/Frans%C3%A9n%E2%80%93Robinson_constant
|
||||||
const_data.push(); */
|
const_data.push(2.807770);
|
||||||
/* case 'g':
|
case 'g': // https://en.wikipedia.org/wiki/Gauss%27s_constant
|
||||||
const_data.push(); */
|
const_data.push(0.834626);
|
||||||
/* case 'h':
|
/* case 'h':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'i':
|
/* case 'i':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'j':
|
/* case 'j':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'k':
|
case 'k': // https://en.wikipedia.org/wiki/Landau%E2%80%93Ramanujan_constant
|
||||||
const_data.push(); */
|
const_data.push(0.764223);
|
||||||
/* case 'l':
|
case 'l': // https://en.wikipedia.org/wiki/Lochs%27s_theorem
|
||||||
const_data.push(); */
|
const_data.push(0.97027011439203392574);
|
||||||
/* case 'm':
|
case 'm': // https://en.wikipedia.org/wiki/Meissel%E2%80%93Mertens_constant
|
||||||
const_data.push(); */
|
const_data.push(0.261497);
|
||||||
/* case 'n':
|
/* case 'n':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'o':
|
/* case 'o':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'p':
|
case 'p': // https://en.wikipedia.org/wiki/Universal_parabolic_constant
|
||||||
const_data.push(); */
|
const_data.push(2.29558714939263807403);
|
||||||
/* case 'q':
|
/* case 'q':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'r':
|
/* case 'r':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 's':
|
case 's': // https://en.wikipedia.org/wiki/MRB_constant
|
||||||
const_data.push(); */
|
const_data.push(0.18785964246206712024);
|
||||||
/* case 't':
|
/* case 't':
|
||||||
const_data.push(); */
|
const_data.push(); */
|
||||||
/* case 'u':
|
/* case 'u':
|
||||||
|
|
Loading…
Reference in a new issue