sage: f0(x) = 0
sage: f = Piecewise([[(0,1),f0]])
sage: numerical_integral(f,0,1)
(0.0, 0.0)
Andrzej Chrzeszczyk
--
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, v
Polyhedron and Polytope (=compact Polyhedron) implies convex. For example:
sage: lp = LatticePolytope(matrix([[-1,-1], [-1,0], [0,0], [1,0],
[1,-1]]).transpose())
sage: lp.points()
[-1 -1 1 1 0 0]
[-1 0 0 -1 -1 0]
sage: lp.vertices()
[-1 -1 1 1]
[-1 0 0 -1]
--
To post to this group,
Hi Sage Community,
I have what seems like a simple question. Given a lattice polytope, is
it convex? I've tried searching through the documentation but it looks
like there is nothing that performs this check (e.g. isConvex()). As
an example, consider the following lattice polytope: [ [-1,-1],
[-1,
On Mon, Feb 21, 2011 at 6:26 PM, Ronald L. Rivest wrote:
> I am trying to define piecewise linear functions, and then integrate them.
> But I get an error
> AttributeError: 'sage.rings.integer.Integer' object has no attribute
> 'function'
> when one of the pieces is a constant function. Stran
I am trying to define piecewise linear functions, and then integrate them.
But I get an error
AttributeError: 'sage.rings.integer.Integer' object has no attribute
'function'
when one of the pieces is a constant function. Strangely, the same code
works when
the function is non-constant.
Her
On Mon, Feb 21, 2011 at 2:29 PM, kmcmu...@ramapo.edu
wrote:
> William, I moved .sage to .sage_old, as you suggested. Somehow, when I
> open up sage now (by just double-clicking on the icon, which opens up
> a terminal window), it seems to work fine.
>
> What does this tell us? Please explain...
J
William, I moved .sage to .sage_old, as you suggested. Somehow, when I
open up sage now (by just double-clicking on the icon, which opens up
a terminal window), it seems to work fine.
What does this tell us? Please explain...
Ken
On Feb 21, 4:02 pm, William Stein wrote:
> Hey Ken,
>
> Can you t
Hey Ken,
Can you try moving your $HOME/.sage directory temporarily to say
$HOME/.sage_old?
- william
On Monday, February 21, 2011, kmcmu...@ramapo.edu wrote:
> Jim, I just did the drag and drop again. It seemed to work fine. So I don't
> think that's the problem.
> kcrisman, I'll try to build
Jim, I just did the drag and drop again. It seemed to work fine. So I don't
think that's the problem.
kcrisman, I'll try to build from source tonight.
In the meantime, here's the error that I get with 3*11. Perhaps this will
shed some light on the problem. Maybe it has nothing to do with the n
> I'm game to build it from source if necessary, but I agree that if I'm
> patient someone will probably be able to spot what must have gone wrong
> here.
Well, while you wait you might as well try :) Several of us do test
on 10.4 regularly (both PPC and Intel), and hearing from someone who
uses
Hello Ken,
Did the drag and drop operation complete successfully?
You must watch the operation carefully; occasionally files do not copy.
If an error occurs, there is a README file (perhaps with OSX in the filename)
in the .dmg file that provides instructions for copying with the cp command in
a
No, I have not had any problems before. I'm pretty sure that my previous
version of SAGE was downloaded as a binary, and it worked beautifully on
this machine for a good three years. Then a co-author suggested that I
update to a newer version...
I'm game to build it from source if necessary, b
Hi, I just downloaded this version of SAGE:
sage-4.6-OSX-32bit-10.4-i386-Darwin.dmg
and attempted to install it on my macbook pro with Intel Core 2 Duo,
running
Mac OS X 10.4.11. After
(1) dragging and dropping the sage folder from dmg into Applications
(2) Double-Clicking on the new sage
On Feb 21, 2:01 pm, "kmcmu...@ramapo.edu" wrote:
> Hi, I just downloaded this version of SAGE:
>
> sage-4.6-OSX-32bit-10.4-i386-Darwin.dmg
>
> and attempted to install it on my macbook pro with Intel Core 2 Duo,
> running
> Mac OS X 10.4.11. After
>
> (1) dragging and dropping the sage folder fr
achrzesz wrote :
SAGE:
sage: s=solve(3*x^3-9*x+10==0,x,solution_dict=True)
sage: [n(t[x]) for t in s]
[1.06780542232902 - 1.84949324407141*I,
0.0277635108030695 + 1.24902476648341*I,
-1.09556893313209 + 0.600468477588001*I]
# WRONG!
sage: s=solve(3*x^3-9*x+10==0,x,
solution_dict=True,to_poly_
I'm going to add
input += '_interact_.SAGE_CELL_BZ2TEXT=%r\n' %
bz2.compress(C.input_text())
to
~/sage/devel/sagenb/sagenb/notebook/worksheet.py
in function
start_next_comp()
It uses bz2 because it's already on worksheet.py and to avoid
string_inside_string problems.
This delays
SAGE:
sage: s=solve(3*x^3-9*x+10==0,x,solution_dict=True)
sage: [n(t[x]) for t in s]
[1.06780542232902 - 1.84949324407141*I,
0.0277635108030695 + 1.24902476648341*I,
-1.09556893313209 + 0.600468477588001*I]
# WRONG!
sage: s=solve(3*x^3-9*x+10==0,x,
solution_dict=True,to_poly_solve='force')
sage
17 matches
Mail list logo