[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: computation and summation is hard [question]

From: Andreas Weber
Subject: Re: computation and summation is hard [question]
Date: Sun, 08 Nov 2015 11:57:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Am 08.11.2015 um 11:48 schrieb Jonathan Camilleri:
>  f = @(x) nchoosek(5,x)*0.1.^x*0.9.^(5-x)
>>> sum(f([0:5]))

This basically calls "nchoosek (5, [0:5])"

> error: Invalid call to nchoosek.  Correct usage is:

If you read the documentation from "help nchoosek", why do you think
calling it with a scalar as first param and a vector as second param is
valid syntax?

-- Andy

reply via email to

[Prev in Thread] Current Thread [Next in Thread]