La recherche a retourné 331 résultats

par lukamar
mar. avr. 11, 2023 12:14 pm
Forum : Bugs
Sujet : factor error
Réponses : 1
Vues : 1253

factor error

factor returns an error with this command:

Code : Tout sélectionner

factor(((-i)*z*exp(z)**2+i*z)/((-1-i)*sqrt(pi*z)*abs(z)*exp(z)))
Same with collect.
par lukamar
jeu. nov. 24, 2022 1:42 pm
Forum : Bugs
Sujet : Different Taylor expansions for equivalent expressions
Réponses : 1
Vues : 691

Different Taylor expansions for equivalent expressions

Hi,
There is something wrong with series/taylor command. When I enter

Code : Tout sélectionner

series(cot(x)^2,x=0,1)
I get \(\frac{1}{x^{2}}-\frac{2}{3}+x^{2} \mathrm{order\_size}\left(x\right)\) as expected, but when I enter

Code : Tout sélectionner

series(cos(x)^2/sin(x)^2,x=0,1)
only \(x^{2} \mathrm{order\_size}\left(x\right)\) is returned.
Luka
par lukamar
mar. nov. 15, 2022 3:08 pm
Forum : Bugs
Sujet : using assume can cause crash during eval
Réponses : 4
Vues : 921

Re: using assume can cause crash during eval

Thanks for clearing this up. My example is quite pathological, but maybe assume should report a warning when conflicting assumptions from the user are detected.
par lukamar
sam. nov. 12, 2022 11:38 am
Forum : Bugs
Sujet : using assume can cause crash during eval
Réponses : 4
Vues : 921

using assume can cause crash during eval

If you enter

Code : Tout sélectionner

assume(a<b)
and then

Code : Tout sélectionner

assume(b<a)
then trying to compute with a and b, e.g.causes an infinite loop, crashing after a while (stack overflow?).
par lukamar
sam. nov. 12, 2022 11:35 am
Forum : Bugs
Sujet : plot does not show portions of graph
Réponses : 0
Vues : 1191

plot does not show portions of graph

letting

Code : Tout sélectionner

f:=Heaviside(x+1)*(x+1)+x*Heaviside(x)*(x-1)-Heaviside(x-1)*(x-1)*(x+2)
the command

Code : Tout sélectionner

plot(f,x=-3..3)
does not display the portion for 1<=x<=3. However, subs(f,x=2) returns 1.
par lukamar
sam. sept. 24, 2022 1:35 am
Forum : Xcas - English
Sujet : Latex possible bug?
Réponses : 6
Vues : 1655

Re: Latex possible bug?

New latex conversion omits parentheses when applying functions to simple arguments like e.g. x. I will add an additional condition that the argument must be a one-letter symbol, which should make the output better (one-letter symbols are typeset in italic, so removing parentheses wouldn't affect rea...
par lukamar
sam. août 27, 2022 2:45 pm
Forum : Bugs
Sujet : locus error
Réponses : 9
Vues : 1917

Re: locus error

Another thing: entering comments with Alt+C does not work in xcas anymore. The only effect of Altc+C is that the current entry changes label color to blue.
par lukamar
sam. août 27, 2022 2:44 pm
Forum : Bugs
Sujet : locus error
Réponses : 9
Vues : 1917

Re: locus error

This also may be a bug: the command

Code : Tout sélectionner

plot(sin(x),x=-5..5,display=red)
returns an empty list. However, if I remove the second argument (the range for x), all is ok.
par lukamar
jeu. août 25, 2022 10:10 am
Forum : Bugs
Sujet : locus error
Réponses : 9
Vues : 1917

Re: locus error

Also, this command hangs:

Code : Tout sélectionner

interactive_plotode(sin(t*y),[t,y])
par lukamar
jeu. août 25, 2022 9:48 am
Forum : Bugs
Sujet : locus error
Réponses : 9
Vues : 1917

Re: locus error

But why plotinequation fails? This is a single commandline (with official Xcas 1.7.0 in Ubuntu, but also with compiled 1.9.0):

Code : Tout sélectionner

plotinequation(x^2-y^2<3,[x=-2..2,y=-2..2],xstep=0.1,ystep=0.1)
It does not display the graphics, but also not an error:

Code : Tout sélectionner

gl_y=((-14.188818801) .. 14.188818801),gl_ortho=1
par lukamar
mer. août 24, 2022 11:00 pm
Forum : Bugs
Sujet : locus error
Réponses : 9
Vues : 1917

Re: locus error

Indeed, when the commands are in separate entries it works.
I have fixed the bug, thanks!
par lukamar
lun. août 22, 2022 11:38 am
Forum : Bugs
Sujet : locus error
Réponses : 9
Vues : 1917

locus error

locus command in 1.7.0 as well as in 1.9.0 is failing on all examples, e.g.

Code : Tout sélectionner

P:=element(line(i, i+1))
G:=isobarycenter(-1,1,P)
locus(G,P)
This returns an error.
par lukamar
sam. juil. 09, 2022 3:02 pm
Forum : Bugs
Sujet : Build error for 1.9-13 on Linux
Réponses : 7
Vues : 2379

Re: Build error for 1.9-13 on Linux

It's strange that calling fltk_view, which is defined in Xcas1.h, causes no problems and Xcas1.h includes Graph.h.
A fix would be to uncomment the line 21 in global.h, which defines USE_OBJET_BIDON.
par lukamar
mer. juil. 06, 2022 6:19 am
Forum : Bugs
Sujet : parser problem
Réponses : 5
Vues : 1454

Re: parser problem

Great, it works now!
par lukamar
mer. juin 29, 2022 8:10 am
Forum : Bugs
Sujet : parser problem
Réponses : 5
Vues : 1454

Re: parser problem

OK, it's not a big deal. But maybe a fix would be to print the equal-symbolic expression with spaces around = when unary_function_ptr is detected in both sides of the equality? I'm suggesting this for programmatic use of giac, where gen::print is called to write an expression to a string which is su...