Question: Solve Product of Function With some variables

Dear All,

I need your help, what function in Maple must be used to find the different form of this function

f := product((p*beta[1]*(t[i]/theta[1])^(beta[1]-1)*exp(-(t[i]/theta[1])^beta[1])/theta[1])^Y[i]*((1-p)*beta[2]*(t[i]/theta[2])^(beta[2]-1)*exp(-(t[i]/theta[2])^beta[2])/theta[2])^(1-Y[i]), i = 1 .. n)

into this function

f := (sum(Y[i], i = 1 .. n))*ln(p)+(sum(Y[i], i = 1 .. n))*ln(beta[1])-(sum(Y[i], i = 1 .. n))*ln(theta[1])-(beta[1]-1)*(sum(Y[i], i = 1 .. n))*ln(theta[1])+ln(product(t[i]^((beta[1]-1)*Y[i]), i = 1 .. n))-(sum(t[i]^(beta[1]*Y[i]), i = 1 .. n))/theta[1]^(beta[1]*(sum(Y[i], i = 1 .. n)))+(sum(1-Y[i], i = 1 .. n))*ln(1-p)+(sum(1-Y[i], i = 1 .. n))*ln(beta[2])-(sum(1-Y[i], i = 1 .. n))*ln(theta[2])-(beta[2]-1)*(sum(1-Y[i], i = 1 .. n))*ln(theta[2])+ln(product(t[i]^((beta[2]-1)*(1-Y[i])), i = 1 .. n))-(sum(t[i]^(beta[2]*(1-Y[i])), i = 1 .. n))/theta[2]^(beta[2]*(sum(1-Y[i], i = 1 .. n)))

Please Wait...