Guest User

Untitled

a guest
Nov 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. nd[y_, a_, b_, n_] := (Binomial[b - a + 1, y]*Sum[((-1)^i)*Binomial[y, i]*((y - i)/(b - a + 1))^n, {i, 0, y}]);
  2. Blend[{Black, Purple, Blue, Green, Yellow, Orange, Red, White}, ColorScaling -> False]
  3. Manipulate[
  4. ArrayPlot[Table[nd[y, 1, K, N], {K, 1, 25}, {N, 1, 25}],
  5. ColorFunction -> mycolorfun, DataReversed -> True, Frame -> True,
  6. FrameTicks -> Automatic,
  7. FrameLabel -> {Rotate["K", -90 Degree], "N"}], {y, 1, 15, 1}]
  8.  
  9. nd[15, 1, 21, 25.0]
  10. (out) 0.268495
Add Comment
Please, Sign In to add comment