Thank you so much Ahmed!
Your answer was really clear
and the solution (for this and
other cases) works perfectly.
It appears that is crucial
to understand how conversions
work in Sage.
-- Giovanni
--~--~-~--~~~---~--~~
To post to this group, send email to sage
On Tue, Jun 30, 2009 at 5:59 AM, Ahmed Fasih wrote:
>
> On Jun 29, 8:37 pm, Kevin Horton wrote:
>> It would be nice if that wiki FAQ mentioned the option of using an "r"
>> suffix. I didn't know about that possibility until now.
>>
>> I tried to set up a wiki account so I could edit the page, bu
On Jun 29, 8:37 pm, Kevin Horton wrote:
> It would be nice if that wiki FAQ mentioned the option of using an "r"
> suffix. I didn't know about that possibility until now.
>
> I tried to set up a wiki account so I could edit the page, but that
> didn't seem to work.
Took the liberty of doing
On 29 Jun 2009, at 05:54, William Stein wrote:
>
> On Mon, Jun 29, 2009 at 11:52 AM, Ahmed Fasih
> wrote:
>>
>> Giovanni, try this instead:
>>
>> sage: numpy.random.multinomial(10, [.5,.5], size=20r)
>>
>> The only difference is the "r" suffix to the size argument.
> Thanks for that very clea
On Mon, Jun 29, 2009 at 10:03 PM, linuxgus wrote:
>
> On Jun 29, 5:52 am, Ahmed Fasih wrote:
>
>> There are a couple of things you can try:
>> 1) If you are doing only Numpy stuff and don't need any sage-specific
>> tools, you can use ipython without sage: "sage -ipython", or in the
>> notebook,
On Jun 29, 5:52 am, Ahmed Fasih wrote:
> There are a couple of things you can try:
> 1) If you are doing only Numpy stuff and don't need any sage-specific
> tools, you can use ipython without sage: "sage -ipython", or in the
> notebook, by either choosing "python" in the syntax drop-down menu
>
On Mon, Jun 29, 2009 at 11:52 AM, Ahmed Fasih wrote:
>
> Giovanni, try this instead:
>
> sage: numpy.random.multinomial(10, [.5,.5], size=20r)
>
> The only difference is the "r" suffix to the size argument. When you
> type in numbers into sage, the pre-processor converts them to a base
> ring, whi
Giovanni, try this instead:
sage: numpy.random.multinomial(10, [.5,.5], size=20r)
The only difference is the "r" suffix to the size argument. When you
type in numbers into sage, the pre-processor converts them to a base
ring, which you can see by doing:
sage: preparse('numpy.random.multinomial(