選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

213 行
5.5 KiB

  1. export const linear = {
  2. zeroGradient: {
  3. r2: NaN,
  4. equation: [0, 10],
  5. predicted: [10, 10],
  6. string: 'y = 0x + 10',
  7. data: [[10, 10], [10, 10], [10, 10]],
  8. points: [[10, 10], [10, 10], [10, 10]],
  9. },
  10. zeroIntercept: {
  11. r2: 1,
  12. equation: [2, 0],
  13. string: 'y = 2x',
  14. predicted: [10, 20],
  15. data: [[0, 0], [1, 2], [2, 4], [3, 6]],
  16. points: [[0, 0], [1, 2], [2, 4], [3, 6]],
  17. },
  18. positiveGradient: {
  19. r2: 1,
  20. equation: [2, 1],
  21. predicted: [20, 41],
  22. string: 'y = 2x + 1',
  23. data: [[10, 21], [100, 201], [1000, 2001], [10000, 20001]],
  24. points: [[10, 21], [100, 201], [1000, 2001], [10000, 20001]],
  25. },
  26. negativeGradient: {
  27. r2: 1,
  28. predicted: [3, -7],
  29. equation: [-2, -1],
  30. string: 'y = -2x + -1',
  31. data: [[10, -21], [100, -201], [1000, -2001], [10000, -20001]],
  32. points: [[10, -21], [100, -201], [1000, -2001], [10000, -20001]],
  33. },
  34. positiveGradientWithEmpty: {
  35. r2: 1,
  36. equation: [2, 1],
  37. predicted: [20, 41],
  38. string: 'y = 2x + 1',
  39. data: [[10, 21], [100, null], [1000, 2001], [10000, null]],
  40. points: [[10, 21], [100, 201], [1000, 2001], [10000, 20001]],
  41. },
  42. };
  43. export const exponential = {
  44. growthGreaterThanZero: {
  45. r2: 1,
  46. equation: [2, 2],
  47. predicted: [2, 109.2],
  48. string: 'y = 2e^(2x)',
  49. points: [[0, 2], [0.69, 8], [1.1, 18], [1.39, 32]],
  50. data: [[0, 2], [0.6931471806, 8], [1.098612289, 18], [1.386294361, 32]],
  51. },
  52. decayGreaterThanZero: {
  53. r2: 1,
  54. equation: [2, -2],
  55. predicted: [2, 0.04],
  56. string: 'y = 2e^(-2x)',
  57. points: [[0, 2], [0.69, 0.5], [1.1, 0.22], [1.39, 0.13]],
  58. data: [[0, 2], [0.6931471806, 0.5], [1.098612289, 0.2222222222], [1.386294361, 0.125]],
  59. },
  60. growthGreaterThanZeroWithEmpty: {
  61. r2: 1,
  62. equation: [2, 2],
  63. predicted: [2, 109.2],
  64. string: 'y = 2e^(2x)',
  65. points: [[0, 2], [0.69, 8], [1.1, 18], [1.39, 32]],
  66. data: [[0, 2], [0.6931471806, null], [1.098612289, 18], [1.386294361, null]],
  67. },
  68. };
  69. export const logarithmic = {
  70. greaterThanOne: {
  71. r2: 1,
  72. equation: [0, 10],
  73. predicted: [5, 16.09],
  74. string: 'y = 0 + 10 ln(x)',
  75. points: [[1, 0], [2, 6.93], [3, 10.99], [4, 13.86]],
  76. data: [[1, 0], [2, 6.931471806], [3, 10.98612289], [4, 13.86294361]],
  77. },
  78. greaterThanOneWithEmpty: {
  79. r2: 1,
  80. equation: [0, 10],
  81. predicted: [5, 16.09],
  82. string: 'y = 0 + 10 ln(x)',
  83. points: [[1, 0], [2, 6.93], [3, 10.99], [4, 13.86]],
  84. data: [[1, 0], [2, null], [3, 10.98612289], [4, null]],
  85. },
  86. };
  87. export const power = {
  88. coefficientsEqualToOne: {
  89. r2: 1,
  90. equation: [1, 1],
  91. predicted: [7, 7],
  92. string: 'y = 1x^1',
  93. points: [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]],
  94. data: [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]],
  95. },
  96. coefficientsEqualToOneWithEmpty: {
  97. r2: 1,
  98. equation: [1, 1],
  99. predicted: [7, 7],
  100. string: 'y = 1x^1',
  101. points: [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]],
  102. data: [[1, 1], [2, null], [3, 3], [4, 4], [5, 5], [6, null]],
  103. },
  104. };
  105. export const polynomial = {
  106. positiveLinearGradient: {
  107. config: { order: 1 },
  108. r2: 1,
  109. equation: [2, 0],
  110. string: 'y = 2x + 0',
  111. predicted: [4, 8],
  112. data: [[10, 20], [100, 200], [1000, 2000], [10000, 20000]],
  113. points: [[10, 20], [100, 200], [1000, 2000], [10000, 20000]],
  114. },
  115. negativeLinearGradient: {
  116. config: { order: 1 },
  117. r2: 1,
  118. equation: [-2, 0],
  119. string: 'y = -2x + 0',
  120. predicted: [4, -8],
  121. data: [[10, -20], [100, -200], [1000, -2000], [10000, -20000]],
  122. points: [[10, -20], [100, -200], [1000, -2000], [10000, -20000]],
  123. },
  124. parabolaPositiveCoefficients: {
  125. config: { order: 2 },
  126. r2: 1,
  127. equation: [1, 2, 3],
  128. predicted: [4, 27],
  129. string: 'y = 1x^2 + 2x + 3',
  130. data: [[0, 3], [1, 6], [2, 11], [3, 18]],
  131. points: [[0, 3], [1, 6], [2, 11], [3, 18]],
  132. },
  133. parabolaNegativeCoefficients: {
  134. config: { order: 2 },
  135. r2: 1,
  136. equation: [-1, -2, -3],
  137. predicted: [4, -27],
  138. string: 'y = -1x^2 + -2x + -3',
  139. data: [[0, -3], [1, -6], [2, -11], [3, -18]],
  140. points: [[0, -3], [1, -6], [2, -11], [3, -18]],
  141. },
  142. cubicPositiveCoefficients: {
  143. config: { order: 3 },
  144. r2: 1,
  145. equation: [2, 2, 2, 2],
  146. predicted: [4, 170],
  147. string: 'y = 2x^3 + 2x^2 + 2x + 2',
  148. data: [[0, 2], [1, 8], [2, 30], [3, 80]],
  149. points: [[0, 2], [1, 8], [2, 30], [3, 80]],
  150. },
  151. cubicNegativeCoefficients: {
  152. config: { order: 3 },
  153. r2: 1,
  154. equation: [-2, -2, -2, -2],
  155. predicted: [4, -170],
  156. string: 'y = -2x^3 + -2x^2 + -2x + -2',
  157. data: [[0, -2], [1, -8], [2, -30], [3, -80]],
  158. points: [[0, -2], [1, -8], [2, -30], [3, -80]],
  159. },
  160. cubicPositiveCoefficientsWithEmpty: {
  161. config: { order: 3 },
  162. r2: 1,
  163. equation: [2, 2, 2, 2],
  164. predicted: [4, 170],
  165. string: 'y = 2x^3 + 2x^2 + 2x + 2',
  166. data: [[0, 2], [1, null], [2, 30], [3, 80], [4, 170], [5, 312]],
  167. points: [[0, 2], [1, 8], [2, 30], [3, 80], [4, 170], [5, 312]],
  168. },
  169. zeroYValueCubic: {
  170. r2: 1,
  171. config: { order: 3 },
  172. equation: [1, 2, 3, -6],
  173. predicted: [7, 456],
  174. string: 'y = 1x^3 + 2x^2 + 3x + -6',
  175. data: [[1, 0], [2, 16], [3, 48], [4, 102], [5, 184], [6, 300]],
  176. points: [[1, 0], [2, 16], [3, 48], [4, 102], [5, 184], [6, 300]],
  177. },
  178. zeroYCoefficientCubic: {
  179. r2: 1,
  180. config: { order: 3 },
  181. equation: [0, 1, 2, 3],
  182. predicted: [7, 66],
  183. string: 'y = 0x^3 + 1x^2 + 2x + 3',
  184. data: [[1, 6], [2, 11], [3, 18], [4, 27], [5, 38], [6, 51]],
  185. points: [[1, 6], [2, 11], [3, 18], [4, 27], [5, 38], [6, 51]],
  186. },
  187. };