Hi folks, I am relatively new to programming in Sagemath, and I am
trying
to find a method in of creating a n x n array, with probabilities as
the entries of this array .
Here's the tricky part, then I have to create a coding program which
uses the values in this array.
For i=1 to 5;
For
yes I am just trying to reasign totol prob again so that a new value
of total prob comes out .
On Nov 1, 12:24 am, Dan Drake wrote:
> On Mon, 31 Oct 2011 at 03:09PM -0700, Chappman wrote:
> > Hi folks, I am relatively new to programming in Sagemath, and I am
> > trying
> > t
HI folks, after much reading and trial and error I have came to a
brick wall with this.
I have made a code in R GUI which had "for loops and summations
equations" that links back to sets/lines of arrays/matrix data.
But here is the problem, I have to do this in SageMath programming, so
I have to ch
then probsy <- list2 and probsz <- list1
I keep on getting syntax errors when I write these, can anybody shed
some light on this please.
Kind Regards
Chappman
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sag
b-a ?
Kind Regards
Chappman
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
Hi folks,
I am currently writing a code which uses a matrix in a
previously defined function written in the same sage window, but I
keep on getting this error message : TypeError: unable to coerce
to an
integer.
thank you for your time.
Kind Regards
Chappman
my code is this :
def U(N
Is it possible to make an entry in Q[i,j] equal to a entry in U[i,j]?
I have to have the two functions separately for each matrix though
just like my code above
i.e.
def U(N,M):
...
...
...
return U
def Q(N,M)
...
...
...
Q[i,j]=U(N,M)
return Q
Kind Regards
Chappman
On Dec 3, 4:26 am, &q
is " TypeError:
'sage.rings.integer.Integer' object is not iterable ".
When this code is fixed and does work, the answer would be x=5.
Can anybody see where my code is going wrong please?
Kind Regards
Chappman
--
To post to this group, send email to sage-support@googlegroups.com
T
gt; y_1 = y_2 = 2
> elif y_1>y_2:
> y_1 = y_2 = 1
but currently my code is having trouble doing that.
Is there a way to do this please?
Kind Regards
Chappman
On Feb 6, 11:23 pm, Robert Bradshaw
wrote:
> On Mon, Feb 6, 2012 at 3:12 PM, Chappman wrote:
> > Hi, I am cur
r taking your time looking at this.
Kind Regards
Chappman
On Feb 7, 8:07 pm, Anton Sherwood wrote:
> On 2012-2-07 01:18, Chappman wrote:
>
>
>
>
>
>
>
>
>
> > Hi Rob,
>
> > with this syntex:
>
> >> x=0
> >> for y_1 in [1..2]:
>
Yes I do want a function of some sort here, but I do not want a "def
chaps(u,v)" like what anton has done for now, both for my simplified
and larger problem.
Is there a solution/method to this?
Kind Regards
Chappman
On Feb 7, 9:35 pm, Robert Bradshaw
wrote:
> On Tue, Feb 7, 20
What y ou suggested all I tried it again today, thank you very much
for the help, I did use the def function that you suggest. All the
help and input is being put to good use.
Kind Regards
Chappman
On Feb 8, 6:48 pm, Anton Sherwood wrote:
> Chappman wrote:
>
> >> Yes I do wan
?
Kind Regards
Chappman
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
Chappman
On Feb 24, 6:03 pm, Harald Schilly wrote:
> On Friday, February 24, 2012 11:13:53 AM UTC+1, Chappman wrote:
>
> > and then using a function which opens up the CSV file and utilizes the
> > entires in the matrix P, from the CSV file.
> > Is there a method for this?
>
Thank you very much for that code. Just to clarify, I'm using the sage
notebook (running on my machine), will the code still work? I.e. be
able to read where the files are on my machine even when using the
notebook interface?
Thank you very much for your help.
Chappman
--
To post to this
15 matches
Mail list logo