La recherche a retourné 331 résultats

par lukamar
lun. sept. 20, 2021 3:00 pm
Forum : Bugs
Sujet : solve crash
Réponses : 2
Vues : 1943

solve crash

Hi,
Xcas crashes with the following input:

Code : Tout sélectionner

solve([2*u1*v1+u2*v2,2*u1*v2+u2*v1,v1^2+v2^2-25,v1*v2-9],[u1,u2,v1,v2])
This is not the only example, I have the same problem with several more systems of equations.
par lukamar
ven. juin 18, 2021 9:57 am
Forum : Bugs
Sujet : xcas crashes on computing dfc for rootofs
Réponses : 0
Vues : 4498

xcas crashes on computing dfc for rootofs

There is a problem in computation of continued fraction of a rootof in giac 1.7.0. For example:

Code : Tout sélectionner

r:=solve(x^3-2x^2+x-1=0,x)[0]
returns a rootof. Now entering

Code : Tout sélectionner

dfc(r,10)
results in a crash. Precisely, pari crashes with the message:

Code : Tout sélectionner

  ***   bug in PARI/GP (Segmentation Fault), please report.
par lukamar
ven. janv. 22, 2021 10:15 pm
Forum : Xcas - English
Sujet : Units in latex
Réponses : 2
Vues : 2429

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

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

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

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

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

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

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

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

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

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

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

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

Re: markup export commands

Great, it works, thanks!