MATLAB appears to have a wiki which sponsors programming contests:
http://www.mathworks.com/contest/ants/home.html
The most interesting property seems to be that they get better
algorithms if everyone collaborates on the wiki.
Perhaps we should borrow this idea and highlight the algorithm
of th
this seems to fail:
axiom
-> )lisp (setq result (make-array '(0) :element-type 'base-char :fill-pointer 0
:adjustable t))
Value = #
-> )lisp (with-output-to-string (|$algebraOutputStream| result)
(|parseAndInterpret| "(x+1)^9"))
>> System error:
# is not a string with a fill-pointer
Thi
On May 21, 2005 10:00 PM William Sit wrote:
> ...
> For example:
>
>(26) -> )lisp (|parseAndInterpret| "expand((1+x)^10)::OutputForm")
>
> (26)
>10 9 8 7 6 5 4 3 2
> x + 10x + 45x + 120x + 210x + 252x + 210x + 120x + 45x +
10x + 1
>
ok, so who needs to pack? :-)
Axiom's algebra gets output to a stream called |$algebraOutputStream|
Thus you can get the output you want by:
)set message autoload off
)lisp (progn
(setq tmpout (make-string-output-stream))
(setq save |$algebraOutputStream|)
(setq |$algebraO
On May 22, 2005 12:05 AM Tim Daly wrote:
> Perhaps you could rebind the output stream?
> I'm not sure if *standard-output* is used. But the idea
> is:
>
>)lisp
> (progn
>; we need a new output stream
>(setq tmpout (make-string-output-stream))
>; we hold on to the regular output stre
In fact, I'll write a "string i/o function" that takes a string as
input and returns the string as output. You aren't the first person
to need this. I'll try to get it into the next patch (patch-38).
t
___
Axiom-developer mailing list
Axiom-developer@
On May 22, 2005 12:35 AM Tim Daly wrote:
> ok, so who needs to pack? :-)
Ah, I thought so! :)
> Axiom's algebra gets output to a stream called
> |$algebraOutputStream| Thus you can get the output
> you want by:
>
> )set message autoload off
> )lisp (progn
>(setq tmpout (make-string-outpu
Perhaps you could rebind the output stream?
I'm not sure if *standard-output* is used. But the idea is:
)lisp
(progn
; we need a new output stream
(setq tmpout (make-string-output-stream))
; we hold on to the regular output stream
(setq save *standard-output*)
; we capture
Hi Bill:
You wrote:
> I am not really interested in a linear syntax. (Although
> latex output is interesting for a different purpose, later
> on.) All I want right now is a line-by-line list of strings
> of the text representation. If I took this list of strings
> and print them in sequence, the r
William Sit wrote:
>
> Bill:
>
> And you can get LaTex output string:
>
> (16) -> )lisp (|parseAndInterpret|
> "integrate(sin(x),x)::TexFormat::OutputForm")
>
>(16) ["$$","-{\cos ","\left(","{x} ","\right)}","$$"]
> Type: Outp
Bill:
And you can get LaTex output string:
(16) -> )lisp (|parseAndInterpret| "integrate(sin(x),x)::TexFormat::OutputForm")
(16) ["$$","-{\cos ","\left(","{x} ","\right)}","$$"]
Type: OutputForm
Value = ((|OutputForm|) WRAPPED BRA
Bill:
Try:
(8) -> )lisp (|parseAndInterpret| "integrate(sin(x),x)::OutputForm")
(8) - cos(x)
Type: OutputForm
Value = ((|OutputForm|) WRAPPED "-" (|cos| |x|))
William
___
Axiom-develo
Changes http://page.axiom-developer.org/zope/mathaction/SymbolicIntegration/diff
--
++added:
The answer should be:
\begin{equation}
15\,{\frac {\sqrt {\pi }}{\sqrt {\pi}}}
\end{equation}
--
forwarded from http://page.axiom-developer.org/zope/mathaction/[EMAIL PROTECTED]
__
On May 21, 2005 10:03 AM Tim Daly wrote:
> Well, )lisp is actually just a lisp call. Nothing gets in
> the way. That's why you get the "VALUE" output. You called
> a lisp function. You could write:
>
> )lisp (progn (|parseAndInterpret| "1+1") nil)
>
> and get a NIL return value.
Yes, that is clea
Changes
http://page.axiom-developer.org/zope/mathaction/136CercionOfPowerSeries/diff
--
??changed:
- - This process of coercion is strange.
-
-I will give some hint to understand this. First here is the actions that you
have to do for a better understanding of this bug.
-Here the interpreter ha
Changes http://page.axiom-developer.org/zope/mathaction/SymbolicIntegration/diff
--
\begin{axiom}
integrate(x,x)
\end{axiom}
--
forwarded from http://page.axiom-developer.org/zope/mathaction/[EMAIL PROTECTED]
___
Axiom-developer mailing list
Axiom-devel
Changes http://page.axiom-developer.org/zope/mathaction/SymbolicIntegration/diff
--
\begin{axiom}
int(x,x)
\end{axiom}
--
forwarded from http://page.axiom-developer.org/zope/mathaction/[EMAIL PROTECTED]
___
Axiom-developer mailing list
Axiom-developer@n
Changes http://page.axiom-developer.org/zope/mathaction/SymbolicIntegration/diff
--
\begin{axiom}
axiomintegrate(x^6*exp(-x^2/2)/sqrt(%pi*2),x=%minusInfinity..%plusInfinity)
\end{axiom}
--
forwarded from http://page.axiom-developer.org/zope/mathaction/[EMAIL PROTECTED]
___
Changes http://page.axiom-developer.org/zope/mathaction/SymbolicIntegration/diff
--
\begin{axiom}
integrate(x^6*exp(-x^2/2)/sqrt(%pi*2),x=%minusInfinity..%plusInfinity)
\end{axiom}
--
forwarded from http://page.axiom-developer.org/zope/mathaction/[EMAIL PROTECTED]
Bill,
The WRAPPED output is the lisp data structure.
It's too complex to explain here.
>I presume that there is no reason why this would not work
>when called directly from a lisp function, right?
Well, )lisp is actually just a lisp call. Nothing gets in the way.
That's why you get the "VALUE"
20 matches
Mail list logo