Mathober2024_Hypergeometric

BeyondTheStats

For the 23rd piece of Mathober2024,The prompts being used are the 12th prompt with Hypergeometric and the 31st Prompt with Lie. BeyondTheStats, takes the hypergeometric of fictional citizens of various planets with the mathematical fiction subgroup of Shadow Math. Fiction can be consider a “lie”.

Poetry

Energy is spending
Sending into all arrays
All aspects
But now at the intersect
We must decide which way
Will let our mind ease & flow
Glow and gleams
As it slow-ly let outs the steam

Video

Code

Python

def plotting(M,n,N,color):

    a1 = hypergeom(M, n, N)

    x = np.arange(0, n+1)
    pmf_planet = a1.pmf(x)


    #plotting

    fig = plt.figure()
    ax = fig.add_subplot(111)
    ax.plot(x, pmf_planet, color)
    ax.vlines(x, 0, pmf_planet, lw=1)

    #set parameters for tick labels
    plt.tick_params(axis='x', which='major', labelsize=22)

    ax.set_xlabel('# of Chosen Population Groups within SEeection')
    ax.set_ylabel('hypergeom PMF')
    plt.show()


Saturn = plotting(150, 31, 50,'bo')
Jupiter = plotting(150, 23, 70,'co')
Pluto = plotting(150, 19, 25, 'blue')
Mars = plotting(150, 27, 90, 'go')
Earth = plotting(150, 33, 58, 'orange')
Mercury = plotting(150, 40, 45, 'bo')

SonicPi

#Color +Shadows
#RGB Values

# Forest Green : 34, 139, 34
# Aquamarine :     127, 255, 212
# Light Golden Rod Yellow: 250, 250, 210

#shadow length equation is Length = height / tan(angle)


#Creating Arrays
ForestGreen = [34,139, 34]
Aquamarine = [127, 255, 212]
LGRY = [250, 250, 210]


with_fx :ixi_techno do
  live_loop :forestGreen do
    i = 0
    use_synth :pretty_bell
    play ForestGreen[i] ,release: 3
    sleep [0.5,1,2].choose
    if i < 4
      i+= 1
    end
  end
end




#shadow length component
with_fx :ixi_techno do
  live_loop :forestGreenShadow do
    i = 0
    use_synth :pretty_bell
    play ForestGreen[i]/Math.tan(70) ,release: 3
    sleep [0.25,0.5,1,2].choose
    if i < 4
      i+= 1
    end
  end
end
0
Subscribe to my newsletter

Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kofi / Illestpreacha
Kofi / Illestpreacha