Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YI = 1.6968467
- B1 = -0.1915674
- C = -1.8162469
- def yoshida(i)
- C + YI / (1 + B1 * (i ** (-C)))
- end
- (1..6).step(0.1).each do |i|
- puts "#{i}:\t\t\t\t#{yoshida(i)}"
- end
- __END__
- 1.0: 0.28268713605940676
- 1.1: 0.3810930023893453
- 1.2: 0.4979558391475163
- 1.3: 0.6376562991943244
- 1.4: 0.8062311611168134
- 1.5: 1.0122079163082829
- 1.6: 1.2680074021911742
- 1.7000000000000002: 1.5924212709177847
- 1.8: 2.0152639964107912
- 1.9: 2.58680579151636
- 2.0: 3.3989013562651422
- 2.1: 4.639137253745597
- 2.2: 6.759394636564507
- 2.3: 11.194210525907637
- 2.4000000000000004: 26.213076403643598
- 2.5: -146.06573981039682
- 2.6: -21.44095695040547
- 2.7: -12.1914001973843
- 2.8: -8.799166273171931
- 2.9000000000000004: -7.0405180266341185
- 3.0: -5.965654485287382
- 3.1: -5.241490712908672
- 3.2: -4.721016950862125
- 3.3000000000000003: -4.329287844016599
- 3.4000000000000004: -4.024087548573596
- 3.5: -3.7798231031686242
- 3.6: -3.5800769541646678
- 3.7: -3.413834107941261
- 3.8000000000000003: -3.27342938631132
- 3.9000000000000004: -3.153364476809449
- 4.0: -3.049593167871239
- 4.1: -2.959071970358705
- 4.2: -2.879467869326739
- 4.300000000000001: -2.808962638782594
- 4.4: -2.7461184407407466
- 4.5: -2.6897834291342004
- 4.6: -2.6390241242019097
- 4.7: -2.5930761006904794
- 4.800000000000001: -2.5513074543289465
- 4.9: -2.5131913440043157
- 5.0: -2.4782850843684483
- 5.1000000000000005: -2.4462140358770537
- 5.2: -2.4166590556254937
- 5.3: -2.389346623678597
- 5.4: -2.3640410024874274
- 5.5: -2.340537957398528
- 5.6000000000000005: -2.3186596874521257
- 5.7: -2.298250702940365
- 5.800000000000001: -2.2791744497829716
- 5.9: -2.2613105276104344
- 6.0: -2.2445523832887946
Add Comment
Please, Sign In to add comment