Oop got it working. Thanks for the references. Haven't tried notebook
yet save to create an admin password. I never liked zork (adventure)
this is like that but I managed this time. Now I just have to discover
how to control the argument types, Tableau matrix in QQ, pr and pc
integers. Thanks.
de
On Fri, Oct 16, 2009 at 7:49 PM, StephenMKauffman
wrote:
>
> OK here's what I managed to type in the very unforgiving shell
Have you tried using the Sage notebook?
sage: notebook()
-- William
>
> sage: def nx(Tableau,pr,pc):
> : newtab=Tableau
> : nr=newtab.nrows()
> :
OK here's what I managed to type in the very unforgiving shell
sage: def nx(Tableau,pr,pc):
: newtab=Tableau
: nr=newtab.nrows()
: nc=newtab.ncols()
: if not pr in range(nr):
: print('invalid pivot row in function nx')
: return 'invalid pivo
On Fri, Oct 16, 2009 at 6:22 PM, StephenMKauffman
wrote:
>
> I'm coming from writing Visual Basic code and am clueless about
> python. I typed this into KWrite and saved it with .sage extension. I
> used tab to indent and I am used to closing if then with an endif
> statement, likewise I'm used t
I'm coming from writing Visual Basic code and am clueless about
python. I typed this into KWrite and saved it with .sage extension. I
used tab to indent and I am used to closing if then with an endif
statement, likewise I'm used to ending an for next statement with next
i etc.
def nx(Tableau,int
Problem solved. It turns out there is a stand-alone version of Jmol
for Linux.
Best.
-M.
On Oct 12, 4:50 pm, QuantumDream wrote:
> Is it possible to export the output of thejmolapplet (not just a
> snapshot pic) to use it offline, say in the middle of a presentation,
> without having to start S
OK, thanks.
Mladen
On Oct 16, 4:37 pm, Minh Nguyen wrote:
> Hi Mladen,
>
> On Sat, Oct 17, 2009 at 9:18 AM, mb wrote:
>
> > Hi,
>
> > I think the following is a bug. Most of the time 1/2 is not declared
> > to be 0, but it is in the following code:
>
> Is the following what you wanted to do?
>
Hi Mladen,
On Sat, Oct 17, 2009 at 9:18 AM, mb wrote:
>
> Hi,
>
> I think the following is a bug. Most of the time 1/2 is not declared
> to be 0, but it is in the following code:
Is the following what you wanted to do?
{{{
[mv...@sage ~]$ sage
--
Hi Mladen!
It is not a bug. Since "range" returns Python integers (type "int")
and since 1/2 is zero for Python integers, that behaviour is expected:
sage: [type(x) for x in range(3)]
[, , ]
sage: int(1)/int(2)
0
If you want a range of Sage integers (type "Integer"), use srange:
sage: [type(x)
Hi,
I think the following is a bug. Most of the time 1/2 is not declared
to be 0, but it is in the following code:
In [1]: L=[]
In [2]: for a in range
(1,2):
: for b in range
(2,3):
: L.append
([a,b])
:
In [3]:
L
Out[3]: [[1, 2]]
In [4]: for item in
L:
: print ite
On 16 říj, 21:32, Laurent wrote:
> a = 1
> b = 2
> c = 3
> d = 8
> print "\\frac{",a,"-",b,"}{",c,"-",d,"}=",(a-b)/(c-d)
perhaps print "\\frac{",a,"-(",b,")}{",c,"-",d,"}=",(a-b)/(c-d) if
b<0
Robert
--~--~-~--~~~---~--~~
To post to this group, send email to
Mikado ha scritto:
> I am trying to create a simple slope of a line function that shows all
> the steps in calculating a slope. It takes four numeric values. In
> the first step I would like the user to see m =(1-2)/(3+8). Pretty
> print. Using latex? I would then do some simplifying and show
I am trying to create a simple slope of a line function that shows all
the steps in calculating a slope. It takes four numeric values. In
the first step I would like the user to see m =(1-2)/(3+8). Pretty
print. Using latex? I would then do some simplifying and show m=
(-1/11). I have tried s
2009/10/15 ma...@mendelu.cz :
>
> I think that you can use custom css file in your .sage directory.
> I do not remember he name of this file, try to seach this group, it
> has been dicussed - here or in sage-devel
>
> Robert Marik
That's a useful idea. Despite having implemented that feature, I
David Joyner wrote:
> sage: R. = PolynomialRing(QQ,"a")
> sage: A=matrix([[0,1,1],[2,2,-2],[-1,a,3]])
> sage: A.echelon_form()
>
> [ 2 2 -2]
> [ 0 -1 -1]
> [ 0 0 -a + 1]
>
Note that your answer and my answer both suffer from not getting the
matrix into "true"
sage: R. = PolynomialRing(QQ,"a")
sage: A=matrix([[0,1,1],[2,2,-2],[-1,a,3]])
sage: A.echelon_form()
[ 2 2 -2]
[ 0 -1 -1]
[ 0 0 -a + 1]
On Thu, Oct 15, 2009 at 10:45 PM, Matt Rissler wrote:
>
> Basically, I'm having student look for the x that makes the matrix
ma...@mendelu.cz wrote:
> On 16 říj, 05:45, William Stein wrote:
>> On Thu, Oct 15, 2009 at 7:45 PM, Matt Rissler wrote:
>>
>>> Basically, I'm having student look for the x that makes the matrix
>>> singular, or the columns linearly dependent, or ... However Sage
>>> behaves like so:
>>> sage:
On 16 říj, 06:28, Mike Hansen wrote:
> How do _you_ detect when the session is over? Your code needs to be
> responsible for detecting when the session is over and deleting the
> PNGs.
You can also use sufficiently random and long names in temp directory
and in cron daemon clean this director
I think that you can use custom css file in your .sage directory.
I do not remember he name of this file, try to seach this group, it
has been dicussed - here or in sage-devel
Robert Marik
On 16 říj, 00:21, Chris Seberino wrote:
> On Oct 15, 2:21 pm, William Stein wrote:
>
> > Are you asking
19 matches
Mail list logo