La recherche a retourné 299 résultats

par lukamar
ven. janv. 22, 2021 10:15 pm
Forum : Xcas - English
Sujet : Units in latex
Réponses : 2
Vues : 558

Re: Units in latex

Hi Matt, I see what you mean. In latex, it is recommended to let the typesetter handle implicit multiplication, i.e. to simply separate factors by spaces in the input file; however, this approach does not work well for units. Rather by resorting to explicit multiplication with \cdot, I fixed the iss...
par lukamar
mar. déc. 22, 2020 5:03 pm
Forum : Xcas - English
Sujet : sample and distributions
Réponses : 2
Vues : 365

Re: sample and distributions

Hi, you get different output for eval(X,0) and eval(1*X,0) because X is of type _IDNT (identifier) and 1*X is of type _SYMB (symbolic expression). The _IDNT is currently not handled by sample command and therefore it returns an error. I will modify the code so that cases like eval(X,0) are handled. ...
par lukamar
mar. oct. 27, 2020 10:25 am
Forum : Xcas - English
Sujet : Latex output bugs?
Réponses : 16
Vues : 1201

Re: Latex output bugs?

XcasEngGuy a écrit :
lun. oct. 26, 2020 8:38 pm
I noticed the xcas64inst.exe was updated 24-Oct-2020. Does it include your code?
As it appears, it is compiled with the old version...
par lukamar
sam. oct. 24, 2020 1:26 am
Forum : Xcas - English
Sujet : Latex output bugs?
Réponses : 16
Vues : 1201

Re: Latex output bugs?

It would be possible as soon as Bernard synchronizes the source. I'm maintaining markup.cc in a separate repository. You can get the new version from here: https://github.com/marohnicluka/giac and compile it yourself (replace the file in the latest stable source tarball).
par lukamar
ven. oct. 23, 2020 4:12 pm
Forum : Xcas - English
Sujet : Latex output bugs?
Réponses : 16
Vues : 1201

Re: Latex output bugs?

Hello, thank you Matt for reporting bugs, I made several fixes in markup.cc regarding typesetting of physical constants. I also improved deciding on whether multiplication should be explicit or not (now it is explicit also when multi-character symbols are involved). I compiled the stable version 1.6...
par lukamar
lun. janv. 06, 2020 8:36 pm
Forum : Giac
Sujet : Compiling in Xubuntu 18.04
Réponses : 0
Vues : 2326

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 : 30029

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 : 30029

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 : 3908

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 : 3908

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 : 3908

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 : 3908

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 : 3908

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 : 3908

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 : 3908

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...