shimaa sadk

35 Reputation

5 Badges

2 years, 268 days

MaplePrimes Activity


These are questions asked by shimaa sadk


 

``

lambda[1] := .3:

evalf(int(2*alpha^2*Z*exp(lambda[1]*Z)/((exp(lambda[1]*Z)-1+alpha)^2*(exp(lambda[2]*Z)-1+alpha)), Z = 0 .. infinity))

Float(undefined)

(1)

``


 

Download aquestion.mw

hi,i used ifsolve  comand in my sheat and i have aloop over it  but some times my equations   can't be  solved .My question is how i give an order to maple to stop the loop if the equations can't solve 
 


 


here my code . iam trying to generate a binomial sample but there is some error occure please help

with(Statistics):

 

with(Student[Statistics]):

``

P := .1:

``

r[1] := convert(BinomialRandomVariable(N-n, P), `+`)

`Non-fatal error while reading data from kernel.`

(1)

for i from 2 to N-n do A[i-1] := convert(r[i-1], `+`); r[i] := BinomialRandomVariable(N-n-(sum(A[i], j = 1 .. i-1)), P) end do;

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

 

`Non-fatal error while reading data from kernel.`

(2)

for i to N-n do x[i] := Sample(r[i], 1) end do

x[1] := Vector[row](1, {(1) = 1})

 

Error, (in pr) unable to evaluate 5-A[2] to floating-point

 

sum(R[j], j = 0 .. 10)

2+R[0]+r[4]+r[5]+R[6]+R[7]+R[8]+R[9]+R[10]

(3)

``

NULL


 

 

I 'm solving asystem of equations and one of the result are Hfloat what does it means and how i convert it to number???

if i have agroup consist of two values for example {0.2,0.5} how to name 0.2 with a certian symple like R and 0.5 with other sympol

3 4 5 6 7 Page 5 of 7