La recherche a retourné 120 résultats

par jocaps
dim. sept. 24, 2017 11:12 am
Forum : Giac
Sujet : initializing giac gen in c++
Réponses : 3
Vues : 3889

initializing giac gen in c++

Hi, I want to try to regularly write giac dependent c++ code. But there are things that confuses me a bit. First, I don't suppose that there is any (official or unofficial) documentation on using the giac c++ library, is there? This is understandable (since I am sure it is a lot of work for the deve...
par jocaps
ven. sept. 01, 2017 11:15 am
Forum : Giac
Sujet : giac startup
Réponses : 3
Vues : 3987

Re: giac startup

native app takes some time to initialize (C++ code vs C code in pari/gp), and the python/giac interface requires also some time. Thank you for your analysis of the startup time. I also realized (independent of python), when I called a simple c++ program linked to giac, I get a similar overhead. But...
par jocaps
mer. août 30, 2017 10:33 am
Forum : Giac
Sujet : giac startup
Réponses : 3
Vues : 3987

giac startup

Hi, I am using giac from giacpy and I am wondering (I believe this is more a giac issue) why the startup is pretty slow. In general this is not an issue but having a faster startup would make life a bit easier. For instance, running a giacpy program one waits around 1-2 seconds to just get the text ...
par jocaps
ven. août 25, 2017 7:18 pm
Forum : Bugs
Sujet : Is this a bug in greduce?
Réponses : 2
Vues : 3234

Re: Is this a bug in greduce?

frederic han a écrit :I think that greduce want a groebner basis in input (and don't compute it at all).
Ah, yes you are right. Thank you for clarifying. This makes more sense, otherwise greduce will need to compute the groebner basis all the time. Thank you.
par jocaps
ven. août 25, 2017 1:19 pm
Forum : Giacpy
Sujet : giacpy and changing a matrix element
Réponses : 13
Vues : 15121

Re: giacpy and changing a matrix element

I confirm installation with pip under windows. It is great that it is also compiled with pari and so the pari library is included in the installation. But I also confirm that the last patch with "ker" fix is not there.

Jose
par jocaps
ven. août 25, 2017 9:50 am
Forum : Bugs
Sujet : Is this a bug in greduce?
Réponses : 2
Vues : 3234

Is this a bug in greduce?

Hi, I am not sure if what I am asking is a bug. In any case, I did not find an appropriate thread where I can post my question. I hope you do not mind me posting here. Consider the following code (giac, I ran both in giac and giacpy and got the same results): h1:=x0-x1; h2:=x2-x3; h3:=d2*x2-y0-y1; h...
par jocaps
lun. août 21, 2017 11:14 am
Forum : Giacpy
Sujet : giacpy and changing a matrix element
Réponses : 13
Vues : 15121

Re: giacpy and changing a matrix element

OK I have rebuilt the giac.dll (1.2.3-57) with the subsop and the row reduction patch reported http://xcas.e.ujf-grenoble.fr/XCAS/viewtopic.php?f=3&t=1846 , and rebuilt giacpy. You can find it here: http://webusers.imj-prg.fr/~frederic.han/xcas/giacpy/win32/0.5.2/giacpy-python27-win32_giac123-57p1....
par jocaps
sam. août 19, 2017 8:20 pm
Forum : Giacpy
Sujet : giacpy and changing a matrix element
Réponses : 13
Vues : 15121

Re: giacpy and changing a matrix element

Here is a python27 win32 version of giacpy with pari gsl gmp mpfr and ntl. ... ... I hope it will work for you. I also have a python3.5 win64 if you want. Thank you Frederic. It does work charmingly. Thanks a lot. subsop works as well. Pari works to the extent that I checked (I tried to initialize ...
par jocaps
ven. août 18, 2017 12:52 pm
Forum : Giacpy
Sujet : giacpy and changing a matrix element
Réponses : 13
Vues : 15121

Re: giacpy and changing a matrix element

Unfortunately I have never suceeded to do this because I would need to build first the giac library on windows and I got always linkage problems with python. So up to now I am cross buildings the giac library and giacpy from linux with mingw. NB: the giacpy version only refers to the cython code (g...
par jocaps
jeu. août 17, 2017 8:58 am
Forum : Giacpy
Sujet : giacpy and changing a matrix element
Réponses : 13
Vues : 15121

Re: giacpy and changing a matrix element

Indeed this is not convienient in giacpy.So depending on the situation you may try to avoid it by working with python lists of lists and then send this to giac. Thank you Frederic. The problem with python list of list is that you want to do matrix operations in between and have to transform to matr...
par jocaps
mer. août 09, 2017 2:05 pm
Forum : Giacpy
Sujet : giacpy and changing a matrix element
Réponses : 13
Vues : 15121

giacpy and changing a matrix element

Hi I was wondering how you can change a matrix element in giacpy. For instance, consider this code from giacpy import newMat m = newMat(4,8) m[1,1]=2 the last line of the code will give me an error: Traceback (most recent call last): File "<pyshell#8>", line 1, in <module> m[1,1]=2 TypeError: 'giacp...
par jocaps
jeu. août 03, 2017 1:42 am
Forum : Giac
Sujet : HAVE_ALLOCA in config
Réponses : 1
Vues : 3051

HAVE_ALLOCA in config

Hi, Before I start asking.. let me write that I get the source from here: https://www-fourier.ujf-grenoble.fr/~parisse/giac/giac_stable.tgz This will be the latest stable with bugfixes I hope. I have asked before how to compile with cygwin and I was greatly helped by Bernard. I am not sure if everyt...
par jocaps
mar. août 01, 2017 1:30 pm
Forum : Giac
Sujet : guide for linking from windows
Réponses : 5
Vues : 7164

Re: guide for linking from windows

I gave up on testing giac.dll by compiling icas or xcas, because both will need at a certain point fltk. Disabling fltk will not work the first error that you get is icas.o: In function `texmacs_graph_output(giac::gen const&, giac::gen&, std::string&, int, giac::context const*)': /usr/src/giac-1.2.3...
par jocaps
lun. juil. 31, 2017 1:50 pm
Forum : Giac
Sujet : guide for linking from windows
Réponses : 5
Vues : 7164

Re: guide for linking from windows

Thanks Bernard. I do remember having had some problems compiling the example (not the library), but I did not install any optional packages back then. Unfortunately I am in a place where internet is extremely unreliable, so installation and download will take a little time. I will be back in Europe ...
par jocaps
dim. juil. 30, 2017 12:17 pm
Forum : Giac
Sujet : guide for linking from windows
Réponses : 5
Vues : 7164

guide for linking from windows

Dear Giac developers, I have the impression that a selected few have been able to link to the giac library from windows (i.e. first compile the library and the link to it). I have tried doing so in the past and I always seem to fail (I tried cygwin with gcc, visual studio, mingw32 with codeblocks). ...