Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

more ranging variable problems

more ranging variable problems

more ranging variable problems

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

You are probably trying to use a range variable as a vector.  It is not a vector.  To make a vector variable V from a range variable n,


RE: more ranging variable problems

still got a problem: i labeled a vector variable(Vn=n) and wrote n=0;5 - no help.  then tried n=(0,1,2,3,4,5) and still problems..now it says n needs to be an integer...any suggestions?

RE: more ranging variable problems

nvm, figured it out...

RE: more ranging variable problems

Nice of you to share the answer with the group.

RE: more ranging variable problems

if you're being sarcastic..and i think you are, here is what i was trying to do and what i did to get what i wanted:

Simple probability function with changing variable:
vn:=n  (that's V sub n)
vn= (will print a table of all values) again v sub 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?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close