Runge Kutta

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Find the solution of the differential equation

y' = y

using the classic Runge Kutta 4th order method

y(0) = 1.0
stepsize = 0.1

http://en.wikipedia.org/wiki/Runge-Kutta

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

*NOTHING*

Sample output:

x = 0.0, y = 1.000000
x = 0.1, y = 1.105171
x = 0.2, y = 1.221403
x = 0.3, y = 1.349858
x = 0.4, y = 1.491824
x = 0.5, y = 1.648721
x = 0.6, y = 1.822118
x = 0.7, y = 2.013752
x = 0.8, y = 2.225540
x = 0.9, y = 2.459601
x = 1.0, y = 2.718280
x = 1.1, y = 3.004163
x = 1.2, y = 3.320114
x = 1.3, y = 3.669293
x = 1.4, y = 4.055196
x = 1.5, y = 4.481684
x = 1.6, y = 4.953026
x = 1.7, y = 5.473940
x = 1.8, y = 6.049639
x = 1.9, y = 6.685885
x = 2.0, y = 7.389045
x = 2.1, y = 8.166157
x = 2.2, y = 9.024998
x = 2.3, y = 9.974165
x = 2.4, y = 11.023156
x = 2.5, y = 12.182471
x = 2.6, y = 13.463711
x = 2.7, y = 14.879701
x = 2.8, y = 16.444611
x = 2.9, y = 18.174105
x = 3.0, y = 20.085491

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1ksk540.00032008/05/11 15:43:240B / 29B / 20B
2leonid540.02982008/05/19 11:50:440B / 29B / 20B
3murky-satyr540.07972008/05/21 01:16:350B / 28B / 21B
4yowa560.00032008/05/11 03:42:040B / 28B / 23B
5pooq580.09902008/05/17 16:10:050B / 31B / 22B
6tabasa770.07302008/05/12 09:40:224B / 38B / 26B

Perl _

RankUserSizeTimeDateStatistics
1Terje K520.01982008/05/15 21:57:590B / 26B / 18B

Python _

RankUserSizeTimeDateStatistics
1notogawa600.08342008/05/17 19:06:320B / ?B / ?B
2Defenestrator600.06662008/05/20 12:12:110B / 30B / 25B
3pooq640.59982008/05/17 16:07:010B / 36B / 20B
4Hendrik640.59002008/05/24 06:08:070B / 36B / 20B
5SeeNoEvil680.04542008/05/13 07:08:440B / 35B / 26B
6kt3k860.03382008/05/24 01:04:300B / 49B / 27B

PHP _

RankUserSizeTimeDateStatistics
1murky-satyr640.13932008/05/13 21:38:280B / 27B / 31B

Scheme _

RankUserSizeTimeDateStatistics
1pooq980.08982008/05/13 22:16:300B / 53B / 33B
2murky-satyr1070.06942008/05/12 21:42:160B / 49B / 43B

Common LISP _

RankUserSizeTimeDateStatistics
1pooq740.11982008/05/13 21:16:370B / 40B / 22B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr773.61002009/10/30 02:01:110B / 41B / 21B
2pooq794.57122009/10/12 08:48:030B / 41B / 23B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr780.83872008/05/13 22:01:110B / 42B / 30B
2pooq850.97292008/05/12 17:52:100B / 47B / 33B
3pooq760.87972008/05/25 22:20:180B / 41B / 29B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr780.03702008/05/20 23:21:070B / 38B / 37B
2nn790.02252008/05/20 18:07:280B / 38B / 38B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr710.00032008/05/21 01:52:330B / 41B / 22B
2pooq780.03562008/05/12 22:52:180B / 44B / 24B

Tcl _

RankUserSizeTimeDateStatistics
1murky-satyr1030.00352009/11/22 03:22:330B / 55B / 31B
2pooq1040.00352009/11/21 04:27:510B / 56B / 30B

Icon _

RankUserSizeTimeDateStatistics
1clock(pooq)1000.01542012/04/11 12:15:410B / 57B / 33B
2pooq1050.01932012/04/11 11:25:220B / 57B / 38B

REXX _

RankUserSizeTimeDateStatistics
1pooq920.02022012/04/11 17:24:200B / 59B / 20B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq620.06432012/05/06 13:00:380B / 32B / 25B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr880.16872008/05/12 11:43:040B / 48B / 34B

Prolog _

RankUserSizeTimeDateStatistics
1pooq710.00022009/02/27 07:00:480B / 36B / 29B

Forth _

RankUserSizeTimeDateStatistics
151b1090.01792008/05/21 18:22:450B / 55B / 23B
251b1030.03372008/09/15 19:22:360B / 52B / 25B

BASIC _

RankUserSizeTimeDateStatistics
1pooq730.32722008/05/17 00:56:410B / 41B / 24B

Erlang _

RankUserSizeTimeDateStatistics
151b1190.54392008/05/11 17:14:220B / 62B / 50B

J _

RankUserSizeTimeDateStatistics
1pooq640.53742008/05/17 00:55:300B / 29B / 28B
2pooq590.06072011/01/30 08:02:530B / 24B / 27B

C _

RankUserSizeTimeDateStatistics
151b750.02972008/05/11 14:45:450B / 37B / 33B
2notogawa750.01992008/05/11 20:26:570B / 37B / 33B
3murky-satyr750.03182008/05/13 21:30:430B / 38B / 32B
4Shax760.00032008/05/12 23:53:120B / ?B / ?B
5yowa770.03132008/05/12 00:36:200B / 36B / 36B
6Hendrik1250.00032008/05/15 06:05:553B / 70B / 41B

C++ _

RankUserSizeTimeDateStatistics
1Shax1000.00032008/05/14 14:03:251B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
151b880.00032008/05/11 14:57:530B / 47B / 33B

OCaml _

RankUserSizeTimeDateStatistics
1ksk870.08962008/06/18 23:18:530B / 56B / 20B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa950.08312008/05/17 19:25:200B / ?B / ?B
2Hendrik1090.06032008/05/24 06:12:310B / 66B / 35B

Java _

RankUserSizeTimeDateStatistics
1teebee990.12932011/03/22 06:45:240B / 55B / 37B
2pooq1180.17322010/09/17 22:37:510B / 70B / 41B

Pascal _

RankUserSizeTimeDateStatistics
1uru890.02832009/07/15 22:38:050B / 54B / 25B
2pooq920.02992009/01/19 15:41:040B / 55B / 26B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*650.00022009/08/18 00:09:330B / 35B / 26B
2pooq730.00032008/11/01 16:12:420B / 42B / 22B
3fd0770.05002008/10/04 18:42:130B / 43B / 28B

Maxima _

RankUserSizeTimeDateStatistics
1pooq670.23102009/08/09 13:00:160B / 33B / 28B

gnuplot _

RankUserSizeTimeDateStatistics
1pooq1210.02292012/04/18 18:31:560B / 67B / 43B

Octave _

RankUserSizeTimeDateStatistics
1pooq570.48682011/10/17 16:55:020B / 28B / 24B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee790.11542011/12/20 18:53:230B / 41B / 31B
2pooq820.19112011/12/20 17:54:190B / 41B / 34B

AWK _

RankUserSizeTimeDateStatistics
1nn(cheat)620.00932008/05/12 00:09:550B / 31B / 26B
2notogawa630.00922008/05/11 23:41:030B / ?B / ?B
3nn630.09932008/05/12 13:31:220B / 36B / 22B
4pooq630.11082008/05/17 16:09:140B / 35B / 23B
5tabasa770.02222008/05/12 09:53:500B / 41B / 31B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1410.39272008/05/12 22:08:3160B / 48B / 26B
2yshl2340.35942008/05/12 18:23:420B / 159B / 33B

R _

RankUserSizeTimeDateStatistics
1murky-satyr611.23972008/05/13 21:30:170B / 33B / 23B
251b623.34882008/05/16 20:25:290B / 34B / 23B
3pooq631.24962008/05/13 22:17:030B / 35B / 22B

D-compile-time _

RankUserSizeTimeDateStatistics
151b2240.74922008/05/12 17:34:060B / 131B / 80B

DOS _

RankUserSizeTimeDateStatistics
1chocobi2351.22652008/11/18 02:52:28130B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1nn1080.03222010/10/10 12:03:490B / 64B / 33B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr470.10952008/07/23 01:40:560B / 21B / 21B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr754.04972008/05/21 01:44:240B / 43B / 27B
2nn934.05922008/05/13 19:21:500B / 47B / 40B
3nn(esc bug)1284.25482008/05/11 15:55:240B / 79B / 43B
4teebee612.11382011/03/22 06:52:270B / 34B / 22B
5murky-satyr623.30402009/12/06 17:07:190B / 36B / 21B
6nn641.18202009/12/06 11:53:360B / 37B / 22B

Scala _

RankUserSizeTimeDateStatistics
1teebee717.43242011/03/22 06:08:300B / 39B / 25B
2murky-satyr717.33972011/03/22 06:22:080B / 40B / 24B
3pooq733.58442011/02/16 12:13:240B / 42B / 24B

Logo _

RankUserSizeTimeDateStatistics
1teebee750.00342011/03/23 10:21:430B / 43B / 20B
2pooq940.00152011/03/21 20:17:250B / 53B / 24B

Language Ranking_

RankLangUserSizeScore
1gorubymurky-satyr4710000
2PerlTerje K529038
3Rubyksk548703
4Octavepooq578245
5Jpooq597966
6Pythonnotogawa607833
7Rmurky-satyr617704
8Groovyteebee617704
9AWKnn(cheat)627580
10PARI/GPpooq627580
11PHPmurky-satyr647343
12Fortran*yuko*657230
13Maximapooq677014
14Luamurky-satyr716619
15Prologpooq716619
16Scalateebee716619
17BASICpooq736438
18Common LISPpooq746351
19C51b756266
20Logoteebee756266
21Iopooq766184
22Arcmurky-satyr776103
23JavaScriptmurky-satyr786025
24Asymptoteteebee795949
25OCamlksk875402
26D51b885340
27Smalltalkmurky-satyr885340
28Pascaluru895280
29REXXpooq925108
30Haskellnotogawa954947
31Schemepooq984795
32Javateebee994747
33C++Shax1004700
34Iconclock(pooq)1004700
35Forth51b1034563
36Tclmurky-satyr1034563
37Vimnn1084351
38Erlang51b1193949
39gnuplotpooq1213884
40Postscriptyshl(bin)1413333
41D-compile-time51b2242098
42DOSchocobi2352000

return to the top page