## Solution The problem of this contest was to solve the exponential integral numerically:  I implemented an example solution in java which takes your a number x as input and integrates between 1/x and x by dividing it into 10⁹ sections: ``` public class abcd { public static double f(double x) { // Whatever function you want to integrate. return Math.exp(x)/x; } public static void main(String[] args) { double xMax = Double.parseDouble(args[0]); double xMin = 1/xMax; double Δx = (xMax-xMin)/1.0e9; double total = 0; for(double x = xMin; x < xMax; x += Δx) { total += f(x)*Δx; } System.out.println(total); } } ``` This prints out when used for my own reputation(57): ``` 1.0156434538674713E23 ``` This is pretty close to the value supplied by wolframalpha(thanks to @kaeserotor for mentioning it.), but still only a small amount of digits. In the next contest you will apply a slightly different method for integrating this same function. It will be a lot more accurate(f you plug in numbers of the right magnitude…). So you might want to keep your code for comparison. *↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓* ### List of participants with their entries: Name | Solution found | Comment - | - @kaeserotor | 1.0156373595307505e+23 for 57 | By the way you said you are unsure what your computer can handle. Most of the time if whatever operation you do inside the loop is not too long(a few lines) you can be pretty sure that on any modern computer(having a GHz processor) it should run within a minute. @crokkon | 9.178120876620503e+27 for 68.6 | correct. *↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓* ## Winners: Congratulations @kaeserotor and @crokkon, you won 1 SBI each! *↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓* ### The next contest starts in 2 days. Don't miss it!
author | quantumdeveloper |
---|---|
permlink | computation-contest-4-results-and-solution |
category | programming |
json_metadata | {"tags":["programming","puzzle","contest","steembasicincome","stem","math","steemstem","steemiteducation","palnet","sbi"],"users":["kaeserotor","crokkon"],"image":["https://cdn.steemitimages.com/DQmSX58jkRydg9JzNoMsnN8MiZBubLrYeEwByEBq3JiNrsZ/image.png"],"app":"palnet/0.1","format":"markdown","canonical_url":"undefined/@quantumdeveloper/computation-contest-4-results-and-solution"} |
created | 2019-11-15 20:21:51 |
last_update | 2019-11-15 20:21:51 |
depth | 0 |
children | 6 |
last_payout | 2019-11-22 20:21:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.106 HBD |
curator_payout_value | 0.101 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,925 |
author_reputation | 4,456,611,502,865 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,533,887 |
net_rshares | 1,146,507,743,679 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
zorg67 | 0 | 1,377,844,566 | 100% | ||
tdiv7653 | 0 | 5,155,817,627 | 100% | ||
edkarnie | 0 | 80,325,595,326 | 20% | ||
crokkon | 0 | 76,066,212,394 | 100% | ||
storysharing | 0 | 7,702,209,164 | 100% | ||
mytechtrail | 0 | 39,473,610,147 | 25% | ||
steembasicincome | 0 | 118,361,410,213 | 2.98% | ||
stmdev | 0 | 141,334,765 | 1% | ||
tonimontana | 0 | 1,873,308,693 | 100% | ||
nin4i | 0 | 713,681,825 | 100% | ||
zuerich | 0 | 416,152,898,734 | 31% | ||
remlaps-lite | 0 | 13,976,870,897 | 100% | ||
laissez-faire | 0 | 57,213,077 | 100% | ||
balticbadger | 0 | 66,269,004,642 | 50% | ||
darklands | 0 | 104,882,271,993 | 58% | ||
golddeck | 0 | 2,219,917,533 | 100% | ||
driveforkids | 0 | 43,657,924,261 | 40% | ||
limka | 0 | 0 | 1% | ||
onespringday | 0 | 1,124,005,331 | 10% | ||
quantumdeveloper | 0 | 2,263,305,573 | 50% | ||
onecent | 0 | 1,261,620,830 | 9.9% | ||
babytarazkp | 0 | 6,538,189,975 | 100% | ||
ozelot47 | 0 | 9,823,160,442 | 100% | ||
mapxv | 0 | 34,826,968,666 | 4% | ||
giphy | 0 | 6,775,534,821 | 10% | ||
brustem | 0 | 342,585,853 | 100% | ||
curation.stem | 0 | 93,693,617 | 75% | ||
untersatz | 0 | 50,404,650,265 | 10% | ||
stem.alfa | 0 | 455,956,956 | 100% | ||
vxc.stem | 0 | 38,343,254 | 100% | ||
stemd | 0 | 310,939,615 | 100% | ||
yggdrasil.laguna | 0 | 341,203,531 | 70% | ||
riccc96 | 0 | 2,278,903,714 | 50% | ||
kaeserotor | 0 | 12,732,839,312 | 50% | ||
miti.stem | 0 | 345,073,474 | 100% | ||
stem.curate | 0 | 38,143,642,593 | 100% |
.
author | crokkon |
---|---|
permlink | q1162q |
category | programming |
json_metadata | "{"app": ""}" |
created | 2019-11-15 21:52:00 |
last_update | 2022-09-18 07:28:42 |
depth | 1 |
children | 1 |
last_payout | 2019-11-22 21:52:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.029 HBD |
curator_payout_value | 0.029 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1 |
author_reputation | 81,214,366,861,104 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,535,651 |
net_rshares | 343,679,436,256 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
maarnio | 0 | 333,440,376,475 | 60% | ||
ismailkah | 0 | 5,580,408,238 | 25% | ||
quantumdeveloper | 0 | 4,658,651,543 | 100% |
Actually it's not too hard to type if you adjust your keyboard layout a bit. I put Δ on "alt gr"+"shift"+"d" which isn't too hard to press when typing.
author | quantumdeveloper |
---|---|
permlink | q1238a |
category | programming |
json_metadata | {"app":"steemit/0.1"} |
created | 2019-11-16 09:48:12 |
last_update | 2019-11-16 09:48:12 |
depth | 2 |
children | 0 |
last_payout | 2019-11-23 09:48:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 151 |
author_reputation | 4,456,611,502,865 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,547,532 |
net_rshares | 0 |
Nice :D I just chose the step for the rectangle way too small once, like 10^-9 or something, and my laptop did not even let me abort the loop manually for a while, dont know what happened exactly though Posted using [Partiko Android](https://partiko.app/referral/kaeserotor)
author | kaeserotor |
---|---|
permlink | kaeserotor-re-quantumdeveloper-computation-contest-4-results-and-solution-20191115t202611619z |
category | programming |
json_metadata | {"app":"partiko","client":"android"} |
created | 2019-11-15 20:26:12 |
last_update | 2019-11-15 20:26:12 |
depth | 1 |
children | 0 |
last_payout | 2019-11-22 20:26:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 275 |
author_reputation | 18,015,148,601,358 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,533,968 |
net_rshares | 4,512,096,404 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
quantumdeveloper | 0 | 4,512,096,404 | 100% |
A bonus $trendotoken tip from ONECENT! Also consider [MAPR fund](https://steem-engine.com/?p=market&t=MAPR) and [MAXUV](https://steem-engine.com/?p=market&t=MAXUV) vote bonds too. MAP Steem FinTech: growing your STEEM without SP.
author | onecent |
---|---|
permlink | re-computation-contest-4-results-and-solution-20191115t202751z |
category | programming |
json_metadata | "{"app": "rewarding/0.1.5"}" |
created | 2019-11-15 20:27:51 |
last_update | 2019-11-15 20:27:51 |
depth | 1 |
children | 0 |
last_payout | 2019-11-22 20:27:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 231 |
author_reputation | 16,446,725,825,074 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,534,001 |
net_rshares | 0 |
Hello, Your post has been manually curated by a @stem.curate curator. <center></Center><center> *Supporting Steemians on STEMGeeks*</center> We are dedicated to supporting great content, like yours on the [STEMGeeks](stemgeeks.net) tribe. Please join us on [discord](https://discord.gg/73WaANa).
author | stem.curate |
---|---|
permlink | q11u03 |
category | programming |
json_metadata | {"tags":["programming","stem"],"users":["stem.curate"],"image":["https://cdn.steemitimages.com/DQmaqMpaEpJBAwJMN9bCHhmTzUEuymBj8V4BMsiJteZMG7L/FA8866FD-F2C3-43B3-A5A5-E0324BA4BB47.jpeg"],"links":["stemgeeks.net","https://discord.gg/73WaANa"],"app":"stemgeeks/0.1","canonical_url":"https://stemgeeks.net/@stem.curate/q11u03"} |
created | 2019-11-16 06:28:51 |
last_update | 2019-11-16 06:28:51 |
depth | 1 |
children | 0 |
last_payout | 2019-11-23 06:28:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 464 |
author_reputation | 599,563,679,404 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,543,861 |
net_rshares | 0 |
Congratulations @quantumdeveloper, your post successfully recieved <b>6.88015013</b> [TRDO](https://steem-engine.com/?p=history&t=TRDO) from below listed TRENDO callers:<br> > <sup>@onecent earned : **4.58676675** [TRDO](https://steem-engine.com/?p=history&t=TRDO) curation</sup> --- <sup>To view or trade TRDO go to [steem-engine.com](https://steem-engine.com/?p=market&t=TRDO) Join [TRDO Discord Channel](https://discord.gg/wySP8T9) or Join [TRDO Web Site](http://www.trendotoken.info/)</sup>
author | trendotoken |
---|---|
permlink | re-quantumdeveloper-computation-contest-4-results-and-solution-20191118t203109259z |
category | programming |
json_metadata | {"tags":["trdo","trendo-bot"],"app":"comments-scot/1.1","format":"markdown"} |
created | 2019-11-18 20:31:09 |
last_update | 2019-11-18 20:31:09 |
depth | 1 |
children | 0 |
last_payout | 2019-11-25 20:31:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 497 |
author_reputation | 5,546,209,053,433 |
root_title | "Computation Contest #4 Results and Solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,623,111 |
net_rshares | 0 |