Hi!
On 2016-03-02, Michael Orlitzky wrote:
>> 1) Creating a vector space V over the field of Svalbard (all reals) or C of
>> a given dimension n.
>
> sage: VectorSpace(RR,n)
>
> or
>
> sage: VectorSpace(CC,n)
Or simply
sage: CC^2
Vector space of dimension 2 over Complex Field with 53 bits o
Using Volker's tip, the function is_in_span below will return
- a list of coefficients a_j such that f is the sum of a_j g_j,
- or the string 'Not in span'.
from sage.rings.polynomial.multi_polynomial_sequence import
PolynomialSequence
def is_in_span(R,g,f):
# R: polynomial ring;
Not quite what you want, but there is this:
sage: R. = QQ[]
sage: from sage.rings.polynomial.multi_polynomial_sequence import
PolynomialSequence
sage: PolynomialSequence(R, [x^2, x*y, x^2+y^2]).coefficient_matrix()
(
[1 0 0] [x^2]
[0 1 0] [x*y]
[1 0 1], [y^2]
)
On Friday, February 14, 2014 2:
On 15 Mrz., 08:13, "Justin C. Walker" wrote:
> > The way of setting/getting elements of a matrix has nothing to do with
> > the preparser.
>
> Of course. My second comment was in response to the OP's statement that
> "...Sage and Python aren't 1-to-1".
Sure. I just wanted to avoid that the OP m
On Mar 15, 2011, at 00:00 , Simon King wrote:
> Hi Ben and Justin,
>
> On 15 Mrz., 05:38, "Justin C. Walker" wrote:
>> On Mar 14, 2011, at 21:24 , Ben123 wrote:
>>> I was hoping I wouldn't need to make that many changes to the python
>>> code, but this would seem to indicate Sage and Python are
Hi Ben and Justin,
On 15 Mrz., 05:38, "Justin C. Walker" wrote:
> On Mar 14, 2011, at 21:24 , Ben123 wrote:
> > I was hoping I wouldn't need to make that many changes to the python
> > code, but this would seem to indicate Sage and Python aren't 1-to-1.
Perhaps you think of a matrix as a list of
On 3/14/11 11:02 PM, Justin C. Walker wrote:
Hi, and Welcome,
On Mar 14, 2011, at 20:14 , Ben123 wrote:
Hello. I'm a new user to Sage. I am trying to create a matrix without
knowing the values when it is initialized. All the examples I see have
static matrices like
A = matrix(QQ,2,2,[2,1,1,2])
On Mar 14, 2011, at 21:24 , Ben123 wrote:
> Thanks for your response. I now do the following:
>
> MS=MatrixSpace(ComplexField(),2,2)
> A=MS(0)
> A[1,1]=5
>
> I was hoping I wouldn't need to make that many changes to the python
> code, but this would seem to indicate Sage and Python aren't 1-to-
Thanks for your response. I now do the following:
MS=MatrixSpace(ComplexField(),2,2)
A=MS(0)
A[1,1]=5
I was hoping I wouldn't need to make that many changes to the python
code, but this would seem to indicate Sage and Python aren't 1-to-1.
Unless I'm doing something very wrong, this question can
matrix89 wrote:
> Hello Jason,
>
> I would like to get some help on usng sagetex in my Mac.
> I have TexShop, and am trying to run example.tex from CTAN.
> So far I was able to create example.sage, but I am stuck there.
> I don't know how to run that file to get sout file.
> Any advice will be app
> Please describe what you're really doing.
A x = b, A given (constant), x and b variables.
I need investigate the x_i
that match a set of criteria
(essentially which subset of the ( b_j ) are required
in their solution)
and substitute the subset obtained
into functions of the form f( x_i1, ...,
On Sun, Jan 18, 2009 at 6:27 AM, gerhard wrote:
>
> What is the easiest way to set up a vector of variables?
>
> I have a linear algebra problem ( GF(2) )
> and want to manipulate equations.
> The matrix sizes are M x M with M = O(100).
>
> The way I currently go about this is too much of a kludg
On Sat, Jul 26, 2008 at 3:58 AM, Jason Grout
<[EMAIL PROTECTED]> wrote:
>
> David Joyner wrote:
>> On Fri, Jul 25, 2008 at 8:06 PM, John H Palmieri <[EMAIL PROTECTED]> wrote:
>>> On Jul 25, 12:31 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
I'm not sure how you would enter a matrix that size
On Tue, May 13, 2008 at 10:28 AM, <[EMAIL PROTECTED]> wrote:
>
> Greetings. I'm brand new to Sage, and am excited to get started.
> I've been using Maple recently, namely the 'linalg' and
> 'LinearAlgebra' packages.
>
> Browsing the Sage Reference Manual, I don't see an analogue for these
>
14 matches
Mail list logo