more ranging variable problems
more ranging variable problems
(OP)
i'm currently using mathcad to calculate probabilities. the formula i'm using used 3 differing variables(p,N,n). in part 1 p and N are constant and n ranges from 0-5. now i know how to make n a ranging variable, my problem is when trying to solve the equation it has a problem with me asking for n! with the message 'this must be a vector or scalar' any help guys?





RE: more ranging variable problems
Vn:=n
RE: more ranging variable problems
RE: more ranging variable problems
RE: more ranging variable problems
RE: more ranging variable problems
Simple probability function with changing variable:
k=5
n:=1..5
vn:=n (that's V sub n)
vn= (will print a table of all values) again v sub n
p:=5
P(n,k,p):=[k!/(vn!(k-n)!)][p^n][1-p]^(k-n)
P(n,k,p):= (will print probabilities)
what i ended up doing was I hadn't labeled P as a function of variables P(n,k,p). when i had it as just P=...., it wouldn't do anything - seemed to clear up my 'n isnt an integer problem'
did that help?