La recherche a retourné 331 résultats

par lukamar
mar. juin 28, 2022 7:27 pm
Forum : Bugs
Sujet : parser problem
Réponses : 5
Vues : 1644

parser problem

These two lines should evaluate to the same expression, but the second one fails:

Code : Tout sélectionner

eval('output' = 'id');
eval('output'='id')
It seems that '=' gets parsed in advance to at_equal, but the single quotes do not pertain to =.
par lukamar
lun. juin 27, 2022 7:00 pm
Forum : Bugs
Sujet : "autosave" feature moves focus to the application
Réponses : 6
Vues : 4308

Re: "autosave" feature moves focus to the application

Hi,
I have the same problem in Ubuntu 20.04. The problem is possibly in the function

Code : Tout sélectionner

bool History_Pack::save_as(const char * filename,const char * ch,bool autosave_rm,bool warn_user,bool savecontext)
in History.cc, somewhere between the lines 1964 and 1982 where Fl::focus is called...
par lukamar
sam. juin 18, 2022 1:22 pm
Forum : Bugs
Sujet : collection of issues found in 1.9-07
Réponses : 4
Vues : 1529

Re: collection of issues found in 1.9-07

It seems that using e as a symbol in the expression e*x+d is the problem. In giac, it is the base of natural logarithm (a predefined constant). Nevertheless, using it shouldn't crash icas.
par lukamar
dim. févr. 13, 2022 2:14 pm
Forum : Xcas - English
Sujet : Greek letters for variable names
Réponses : 3
Vues : 2277

Re: Greek letters for variable names

"epsilon" and "Gamma" (uppercase gamma) are built-in function names, so they can't be used as symbols. If I'm not mistaken, all other greek symbols which are different from Latin letters (alpha, beta etc.) are available. If you want to use epsilon as a symbol you may use: eps:=make_symbol("epsilon")...
par lukamar
mer. nov. 24, 2021 10:33 am
Forum : Xcas - English
Sujet : Latex revisited
Réponses : 9
Vues : 3408

Re: Latex revisited

Yes, here it is: the latex code \mathrm{xy\_0\_1} gets converted to x_{\mathrm{0_1}}, which causes the sub-subscript "1" because the inner underscore is not prefixed by \. Shouldn't the result rather read as x_{\mathrm{0\_1}}?
par lukamar
mar. nov. 23, 2021 9:03 pm
Forum : Xcas - English
Sujet : Latex revisited
Réponses : 9
Vues : 3408

Re: Latex revisited

Maybe the patch creates sub-subscripts recursively? Since you moved mathrm from \mathrm{var_index1_index2} to the first index, obtaining var_\mathrm{index1_index2}, the patch does its work again on the new subscript. I will change the default behavior for indices for numeric subscripts, so that they...
par lukamar
lun. nov. 22, 2021 7:45 am
Forum : Xcas - English
Sujet : Latex revisited
Réponses : 9
Vues : 3408

Re: Latex revisited

That's intended too, only in the latest version x_0_1 is displayed with "0_1" in subscript (there are no sub-subscripts). The default behavior is to add subscripts only to 1-character symbols (like x_index, but not xy_index). It seemed more likely to me that variables with names like "xy_index" are ...
par lukamar
mer. nov. 17, 2021 8:11 pm
Forum : Xcas - English
Sujet : Latex revisited
Réponses : 9
Vues : 3408

Re: Latex revisited

Hi Matt, this behavior is intended. The conversion routine favors implicit multiplication, explicitly indicating the dot only when the result would be ambiguous otherwise. For example, when multi-character variables are involved (note that they are printed in upright font), which would end up concat...
par lukamar
dim. nov. 07, 2021 2:16 pm
Forum : Bugs
Sujet : possible regression in solve
Réponses : 5
Vues : 2508

Re: possible regression in solve

A maybe related problem: solve now crashes with the following command:

Code : Tout sélectionner

solve([-4*y*x^2*z-4*y*z+4*y+3*x^4-2*x^3+2*x^2+4*x*z-2*x-1,-y*x+y+z*x-z,-2*y^2-4*y*x*z+x^3-x^2-x-2*z^2+1],[x,y,z])
par lukamar
dim. nov. 07, 2021 1:47 pm
Forum : Bugs
Sujet : possible regression in solve
Réponses : 5
Vues : 2508

Re: possible regression in solve

Thanks!
I corrected graphe.h, const was missing in more than one instance.
par lukamar
dim. oct. 31, 2021 9:38 am
Forum : Bugs
Sujet : possible regression in solve
Réponses : 5
Vues : 2508

possible regression in solve

Hi Bernard,

"solve" in the source from Oct 30 fails on this command:

Code : Tout sélectionner

solve([3*x^2-3*z^2,3*y^2-3*z^2,x*y+y*z+x*z-x*y*z],[x,y,z])
The solution is [3,3,3]. I get the error message "Unable to find a separation form for the RUR computation". Maybe it's a regression due to the new functionality?
par lukamar
mar. oct. 12, 2021 7:55 pm
Forum : Bugs
Sujet : solve returning infeasible solution
Réponses : 2
Vues : 1747

Re: solve returning infeasible solution

Everything is fine in Xcas 1.7.0-35 in Windows.
par lukamar
dim. oct. 10, 2021 9:04 pm
Forum : Bugs
Sujet : solve returning infeasible solution
Réponses : 2
Vues : 1747

solve returning infeasible solution

Hi, By solving the system in giac 1.7.0-25 sol:=solve([(2*x1^5+4*x1^3+2*x1*x2+2*x1)/(x1^2*x2+x2),x1^4+2*x1^2+x2^2-3],[x1,x2]) I get four solutions: [[0,sqrt(3)],[0,-(sqrt(3))],[sqrt((sqrt(2*(sqrt(17)-1))-2)/2),(-(sqrt(17))+1)/2],[-(sqrt((sqrt(2*(sqrt(17)-1))-2)/2)),(-(sqrt(17))+1)/2]] However, the s...
par lukamar
dim. oct. 10, 2021 8:48 pm
Forum : Bugs
Sujet : false nonzero imaginary part after real substitution
Réponses : 0
Vues : 4971

false nonzero imaginary part after real substitution

Hi, There's a strange thing happening when substituting in giac 1.7.0-25: s:=subs(ln(1+x1^2)-x2,[x1=-sqrt((sqrt(2*(sqrt(17)-1))-2)/2),x2=(-sqrt(17)+1)/2]) Since values for x1 and x2 are both real, the result should obviously be real also. However, the command im(s) gives (1-i)*pi/2 which is strange ...
par lukamar
mar. sept. 21, 2021 5:45 pm
Forum : Bugs
Sujet : solve crash
Réponses : 2
Vues : 1983

Re: solve crash

Thanks, it works!