On Wednesday, March 21, 2018 at 7:29:37 PM UTC+1, saad khalid wrote:
>
> ...For example, one of the Mathematica functions takes a polynomial in 2
> variables as input and computes the value of the order in one of the
> variables (ie for x1^3 + x1*x2^2 + x2, the order for x1 would be 3).
>
Not
On Wednesday, March 21, 2018 at 6:29:37 PM UTC, saad khalid wrote:
>
> Hey everyone:
>
> I'm currently in the process of converting some code from Mathematica to
> Sage, my primary motivation being that Mathematica is running it too slowly
> and I was hoping that I could somehow get some
On 2018-03-15 13:22, Marc Mezzarobba wrote:
but the variant below doesn't?
That's certainly a bug: https://trac.sagemath.org/ticket/24987
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving
Hi,
Can anyone explain why the following works:
- 8< - 8< - 8< - 8< - 8< - 8< - 8< - 8< -
$ ~/co/sage/sage --version
SageMath version 8.2.beta8, Release Date: 2018-03-10
$ head foo.pyx setup.py
==> foo.pyx <==
from sage.libs.gmp.types cimport mpz_t
==>
Hi,
I am not able to understand why the following should not work (in notebook)
-
cell 1 ##
%cython
from sage.all import ode_solver, random
cdef class A:
cdef double mu
def __init__(self, double mu=1.):
self.mu = mu
def func(self, x):
On Mar 17, 8:42 pm, kstueve kevin.stu...@gmail.com wrote:
I can buy you
lunch/dinner (under $20) for your time, as well as provide interesting
conversation about primes.
I live at the East coast. But I find that $20 offer kinda insulting.
You, probably understand that people with a PhD (like
How much are you getting paid for your posts to sage-devel? I'd like
to suggest that you reconsider the tone of your response.
Best regards,
Marshall Hampton
On Mar 22, 2:52 am, Alec Mihailovs alec.mihail...@gmail.com wrote:
On Mar 17, 8:42 pm, kstueve kevin.stu...@gmail.com wrote:
I can
2010/3/22 Marshall Hampton hampto...@gmail.com:
How much are you getting paid for your posts to sage-devel? I'd like
to suggest that you reconsider the tone of your response.
On Mar 22, 2:52 am, Alec Mihailovs alec.mihail...@gmail.com wrote:
On Mar 17, 8:42 pm, kstueve kevin.stu...@gmail.com
What _I'd_ really like help with is more advanced examples of using
cython in sage, specifically going from doubles and ints to extended
precision types. I don't know of any standalone examples for that.
-Marshall
On Mar 19, 12:43 pm, Robert Bradshaw rober...@math.washington.edu
wrote:
On Mar
On Mar 19, 1:27 pm, Pierre pierre.guil...@gmail.com wrote:
(101 is american numbering meaning in fact first lecture of the first
year)
It's close, but not exactly. In American colleges and universities,
the first digit mean the year, so courses with numbers started with 1,
are supposed to be
I really really need help with patches, packages, and building Sage
too.
--
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, visit this group at
kstueve schrieb:
I really really need help with patches, packages, and building Sage
too.
I do not know what you mean with the supplement 101? And a 101 lession
and cython-101 lesson I do not know and the net does not know.
By some scroogling (www.scroogle.org) you might find
(101 is american numbering meaning in fact first lecture of the first
year)
On 19 mar, 17:33, bb bblo...@arcor.de wrote:
kstueve schrieb: I really really need help with patches, packages, and
building Sage
too.
I do not know what you mean with the supplement 101? And a 101 lession
and
I hope someone more knowledgable than me will help you out. I need a
cython tutorial myself! But maybe I can point out a couple of
resources:
1) For adding cython code to the sage library, I think the developer
guide is pretty clear:
http://www.sagemath.org/doc/developer/coding_in_other.html
On Mar 19, 2010, at 10:39 AM, Marshall Hampton wrote:
I hope someone more knowledgable than me will help you out. I need a
cython tutorial myself! But maybe I can point out a couple of
resources:
1) For adding cython code to the sage library, I think the developer
guide is pretty clear:
Trying to wrap an existing library.
I managed to at least get started with a .spyx file as follows:
cdef extern from stdlib.h:
void *malloc(size_t size)
int free(void*)
int sizeof()
cdef extern from func.h:
int func( int n, float* x )
cdef double*
On Mar 12, 2010, at 9:05 AM, gerhard wrote:
Trying to wrap an existing library.
I managed to at least get started with a .spyx file as follows:
cdef extern from stdlib.h:
void *malloc(size_t size)
int free(void*)
int sizeof()
cdef extern from func.h:
just found that.. was going to post it.
On Feb 18, 9:39 pm, William Stein wst...@gmail.com wrote:
On Thu, Feb 18, 2010 at 9:34 PM, D. Monarres dmmonar...@gmail.com wrote:
Hello all,
Recently I have been using sage for my thesis work and wanted to
cythonize a bit of code in hopes of making
in http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ there is
the following example:
def primes(int kmax):
cdef int n, k, i
cdef int p[1000]
result = []
if kmax 1000:
kmax = 1000
k = 0
n = 2
while k kmax:
i = 0
while i k and n % p[i] 0:
i = i + 1
I followed example 5.2.4 in SAGE Programming Guide. However, even
after the %cython cell is executed the runtime shown by
time v=[sumsquares(100) for _ in xrange(1)]
does not decrease as if SAGE still runs the uncomplied version (which
was typed preceding the %cython cell)
May I know why?
Dear sage-supporters,
a question on pyrex/cython:
I have type definitions depending on an environment variable, such as
#if ZZZ==zzz
typedef unsigned char FEL;
#elif ZZZ==bigzzz
typedef unsigned short FEL;
Is there a way to do a similar thing in pyrex/cython?
Yours sincerely
Simon
21 matches
Mail list logo