On May 9, 2007, at 23:44 , Timothy Clemans wrote:
> I was just trying to make something that would spot issues before an
> object is created. You know be robust.
I know what you are after, but I am not sure this is the way to do
it. You can spend a long time writing code that tries to predic
I was just trying to make something that would spot issues before an
object is created. You know be robust.
On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
> On May 9, 2007, at 23:32 , Timothy Clemans wrote:
>
> >
> > Well I would like to make a Point class for a 2D coordinate system.
On May 9, 2007, at 23:32 , Timothy Clemans wrote:
>
> Well I would like to make a Point class for a 2D coordinate system. So
> what is the best way to prevent most numbers with non-zero imaginary
> parts from becoming x and/or y in the definition of a given point?
> Like I would like to at least
Well I would like to make a Point class for a 2D coordinate system. So
what is the best way to prevent most numbers with non-zero imaginary
parts from becoming x and/or y in the definition of a given point?
Like I would like to at least prevent 3 + i from being x and/or y.
On 5/9/07, Justin C. Wa
On May 9, 2007, at 23:19 , Timothy Clemans wrote:
>
> I don't want someone trying to make a 3D point using a complex number
> with a non-zero imaginary part.
There should be a simpler way to check for that than for real
numbers, but if you are trying to make this absolutely foolproof, you
c
On May 9, 2007, at 17:56 , Bobby Moretti wrote:
> On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>> On May 9, 2007, at 4:59 PM, Bobby Moretti wrote:
[snip]
>> In general, we can't provide a general purpose programming language
>> (and SAGE is one) and avoid this kind of thing. I think th
I don't want someone trying to make a 3D point using a complex number
with a non-zero imaginary part.
On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
> On May 9, 2007, at 22:59 , Timothy Clemans wrote:
>
> > I'm just trying to make sure that input is a real number.
>
> For your purpose
On May 9, 2007, at 22:59 , Timothy Clemans wrote:
> I'm just trying to make sure that input is a real number.
For your purposes, what is a "real number"?
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
If it weren't for carbon-14, I wo
I'm just trying to make sure that input is a real number.
On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> >
> > Oh. How do I check if something is an integer, rational, real, or complex?
> >
>
> In general, in mathematics, it can be
On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
>
> Oh. How do I check if something is an integer, rational, real, or complex?
>
In general, in mathematics, it can be very hard to determine whether
or not a number is real, etc. -- many subtle problems can be phrased
in terms of asking wheth
Oh. How do I check if something is an integer, rational, real, or complex?
On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
> is_RealNumber checks that the data type of the input is a RealNumber,
> i.e., has parent a real field. It does not check whether the object
> itself has some sort of
is_RealNumber checks that the data type of the input is a RealNumber,
i.e., has parent a real field. It does not check whether the object
itself has some sort of abstract mathematical meaning as a real
number.
On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> {{{
> is_RealNumber(3)
> ///
On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
>
> On May 9, 2007, at 4:59 PM, Bobby Moretti wrote:
> > On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
> [snip]
> >> This is the part that I didn't really get until now.
> >> The calculus package is a great addition. It seems to '
On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
>
>
> diff(3) should be 0 but in SAGE it is an error.
This is a good point. I'll fix it.
Shouldn't c be a
> constant by default in SAGE, since many math textbooks use it as one?
>
That would lead to some pretty inconsistent behavior.
{{{
>
diff(3) should be 0 but in SAGE it is an error. Shouldn't c be a
constant by default in SAGE, since many math textbooks use it as one?
{{{
f = function('f')
g = function('g')
view(diff(f(x)*g(x)))
///
{{\rm f}(x) \cdot {\rm diff}({\rm g}(x), x,
1)} + {{\rm g}(x) \cdot {\rm diff}({\rm f}(x), x, 1)
On May 9, 2007, at 4:59 PM, Bobby Moretti wrote:
> On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
[snip]
>> This is the part that I didn't really get until now.
>> The calculus package is a great addition. It seems to 'just work'.
>
> Thanks :). We tried to emulate the feel of language-l
Justin,
On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
>
> On May 9, 2007, at 3:28 PM, Bobby Moretti wrote:
> > On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
> >> On May 9, 2007, at 10:51 AM, Timothy Clemans wrote:
> >> I'm not sure these are failures, per se. This may be a
On May 9, 2007, at 3:28 PM, Bobby Moretti wrote:
> On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>> On May 9, 2007, at 10:51 AM, Timothy Clemans wrote:
>> I'm not sure these are failures, per se. This may be a in issue with
>> the Principal of Least Surprise :-}
> This is definitely the
On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
>
> On May 9, 2007, at 10:51 AM, Timothy Clemans wrote:
>
> > The calculus package fails on all of the following general forms. I
> > used sagenb.com and a clean worksheet.
>
> I'm not sure these are failures, per se. This may be a in issu
On May 9, 2007, at 10:51 AM, Timothy Clemans wrote:
> The calculus package fails on all of the following general forms. I
> used sagenb.com and a clean worksheet.
I'm not sure these are failures, per se. This may be a in issue with
the Principal of Least Surprise :-}
>
> {{{
> diff(c)
> ///
On 5/9/07, Kate Minola <[EMAIL PROTECTED]> wrote:
>
> For sage-2.5, when I do 'make distclean' the
> following files and directories are in the
> top level sage directory:
>
> ipython
> matplotlibrc
> tmp
>
> They are NOT in the source tarball.
Thanks! I've fixed this for SAGE-2.
For sage-2.5, when I do 'make distclean' the
following files and directories are in the
top level sage directory:
ipython
matplotlibrc
tmp
They are NOT in the source tarball.
--
Kate Minola
University of Maryland, College Park
--~--~-~--~~~---~--~---
You could try something like this:
sage: f = function('foo')
sage: g = function('goo')
sage: diff(f(x)*g(x),x)
foo(x)*diff(goo(x), x, 1) + goo(x)*diff(foo(x), x, 1)
On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
>
> The calculus package fails on all of the following general forms. I
> u
The calculus package fails on all of the following general forms. I
used sagenb.com and a clean worksheet.
{{{
diff(c)
///
1
}}}
{{{
diff(c*f(x))
///
Traceback (most recent call last):
File "", line 1, in
File "/home/server2/sage_notebook/worksheets/timothycalculus__/code/2.py",
line 4,
On May 9, 10:53 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> I think you should reinstall from scratch. The "sage -upgrade" procedure
> isn't totally bullet proof.
>
> On 5/9/07, kcrisman <[EMAIL PROTECTED]> wrote:
>
>
>
As I have discovered - the commands "plot", "show", "notebook()", and
I think you should reinstall from scratch. The "sage -upgrade" procedure
isn't totally bullet proof.
On 5/9/07, kcrisman <[EMAIL PROTECTED]> wrote:
>
> Using sage -upgrade which built ok (on Mac PowerPC running OSX.4),
> except reporting an error installing matplotlib, had an importing
> error u
Using sage -upgrade which built ok (on Mac PowerPC running OSX.4),
except reporting an error installing matplotlib, had an importing
error upon running SAGE. Will append relevant last call here, then at
bottom the whole error report. It seems minor but thought useful to
report. The refs. to sag
27 matches
Mail list logo