La recherche a retourné 294 résultats

par lukamar
lun. janv. 06, 2020 8:36 pm
Forum : Giac
Sujet : Compiling in Xubuntu 18.04
Réponses : 0
Vues : 2110

Compiling in Xubuntu 18.04

Hello Bernard, I had some trouble compiling giac unstable in Xubuntu 18.04. At some points the compiler was complaining about vector (i.e. std::vector) not being defined. I found out that inclusion of giac.h has to be modified in lpsolve.cc (I did the commit in my repository) and History.h, Equation...
par lukamar
lun. déc. 16, 2019 9:19 am
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 25338

Re: nonlinear optimization functions

Additionally, I have improved the routine for finding transition points in piecewise-defined functions (optimization.cc). Now e.g. the following is applicable:

Code : Tout sélectionner

minimize(1+piecewise(x^2<=1,sqrt(1-x^2),0),x=-2..2)
minimize(piecewise(x^3<=x*pi^2,sin(x)^2,0),x=-3pi..3pi)
par lukamar
sam. déc. 14, 2019 9:26 pm
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 25338

Re: nonlinear optimization functions

Hi Bernard, I fixed a bug in optimization.cc today regarding the global extrema computation of an univariate function on a segment, can you update that file? [Edit] I have also improved the solve2 routine. Strictly positive factors on the left side of an equation like f(x,y,..)=0 in form a+exp(b), w...
par lukamar
dim. nov. 10, 2019 8:18 am
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

I was referring to the following lines:

Code : Tout sélectionner

    printf("verbatim:");
    format_plugin();
par lukamar
ven. nov. 08, 2019 7:48 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

Hi Bernard,
can you please delete lines 1365-1366 in icas.cc? These belong to the old banner code.
par lukamar
lun. sept. 16, 2019 5:15 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

I have fixed couple of bugs in xml_print and added one more example to the entry in cascmd_en.tex. I also suggest replacing the lines 1361-1368 in icas.cc with printf("latex:"); format_plugin(); printf("{\\centering\\begin{tabular}{|c|}\\hline Giac CAS for TeXmacs, released under the GPL license (3....
par lukamar
sam. sept. 14, 2019 7:34 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

Hi,
can you please update markup.cc/h, cascmd_en.tex and aide_cas? I fixed some bugs, added support for piecewise functions and a command xml_print for indenting XML code.
par lukamar
jeu. sept. 12, 2019 1:24 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

Great, it works, thanks!
par lukamar
mer. sept. 11, 2019 3:19 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

Thanks. No problem, I'll replace endl by "\n" in my source later today. By the way, I've noticed that cobyla algorithm has a heavy output on stderr, which is shown in texmacs sessions. Could it be made quiet when --texmacs option is present? I can help with this if you suggest how it should be done....
par lukamar
mar. sept. 10, 2019 8:07 am
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

I had to make a change in the declaration of has_improved_latex_export, hence tex.cc/h have to be modified accordingly. The modified files are attached below so you can just copy them over the current ones. Now has_improved_latex_export is called from _latex too, this way the output from _latex is t...
par lukamar
lun. sept. 09, 2019 8:14 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

Re: markup export commands

Yes, there's actually no reason not to call has_improved_latex_export, so boolean variable is not needed. It is only needed to move the call from _latex to gen2tex in the current unstable source. Therefore the portion of tex.cc after line 1314 should look like #if defined USE_GMP_REPLACEMENTS || def...
par lukamar
dim. sept. 08, 2019 2:46 pm
Forum : Giac
Sujet : markup export commands
Réponses : 14
Vues : 2537

markup export commands

Hello Bernard, I got my markup routines working fine after several bugfixes which I've committed today. As for tex.cc/h, they should be modified as follows (from the original version before the inclusion of markup.cc/h): tex.cc: 1. Before "#ifndef NO_NAMESPACE_GIAC namespace giac {", insert #if defi...
par lukamar
mar. sept. 03, 2019 6:55 pm
Forum : Giac
Sujet : signal processing commands
Réponses : 36
Vues : 5106

Re: signal processing commands

Thank you. But when I try to compile, I get many errors like for example this one: moyal.cc:2012:18: error: ambiguous overload for ‘operator*’ (operand types are ‘giac::gen’ and ‘double’) return lambda*std::pow(exp_rand(contextptr),1.0/k._DOUBLE_val); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
par lukamar
lun. sept. 02, 2019 9:41 pm
Forum : Giac
Sujet : signal processing commands
Réponses : 36
Vues : 5106

Re: signal processing commands

I have mirrored your change. Strange, I didn't experience this segfault after building Giac on my computer five weeks ago... But I remember having similar problems when using plus_inf and minus_inf. When coding Fourier transformation recently, I had to use symbolic(at_plus,unsigned_inf) instead of p...
par lukamar
lun. sept. 02, 2019 9:50 am
Forum : Giac
Sujet : signal processing commands
Réponses : 36
Vues : 5106

Re: signal processing commands

I removed latex delimiters altogether. I also changed include paths, i.e. removed "giac/" prefix in markup.cc/h.