La recherche a retourné 331 résultats

par lukamar
lun. sept. 25, 2017 9:46 pm
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

Hello, I noticed a small error in documentation for implicitdiff, it concerns the last example, in which pd is defined. The last command of that example should be pd[4,0] and not pd[4,0,0]. I've attached the corrected file below. The correction should also be applied to the last example in tooltip h...
par lukamar
lun. sept. 25, 2017 8:54 pm
Forum : Giac
Sujet : linear programming
Réponses : 46
Vues : 36636

Re: linear programming

Hello, I have improved the lpsolve command. Many parts of code were rewritten or simplified. Also, there are some new features: 1. When solving (mixed) integer LP using branch&bound, suitable Gomory mixed integer (GMI) cuts are added to each subproblem, which usually makes computation significantly ...
par lukamar
mer. sept. 20, 2017 9:03 am
Forum : Xcas - English
Sujet : using Giac in c++
Réponses : 11
Vues : 7817

Re: using Giac in c++

Thanks for the clarification. How does is_zero compare with epsilon as it doesn't get a pointer to context?
par lukamar
mar. sept. 19, 2017 12:26 pm
Forum : Xcas - English
Sujet : using Giac in c++
Réponses : 11
Vues : 7817

Re: using Giac in c++

Hi again,

what's the difference between 'is_zero' and 'is_exactly_zero' functions? Does the first one return true for numbers small enough? I wonder if I'm using them properly...
par lukamar
ven. sept. 15, 2017 11:45 pm
Forum : Bugs
Sujet : 1.4.9 crashes with misspelled input
Réponses : 1
Vues : 2337

1.4.9 crashes with misspelled input

Hi,

I noticed that Xcas 1.4.9 (linux64) crashes on (misspelled) command:

Code : Tout sélectionner

T;=table(1=a,2=b)
The culprit is wrongly typed semicolon, which should have been a colon. But a similar typo in other commands, such as

Code : Tout sélectionner

T;=gcd(2,3)
does not cause a crash.
par lukamar
jeu. sept. 14, 2017 1:01 am
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

Yes, that's it. Sorry!
par lukamar
mer. sept. 13, 2017 1:54 pm
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

I optimized the process of implicit differentiation somewhat. I changed the definition of impldiff type, now it is a map. During computing terms in derive_diffterms, they are automatically grouped so sorting is not needed. Now implicitdiff command is noticeably more agile, producing tenth order part...
par lukamar
mer. sept. 13, 2017 9:41 am
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

I forgot to mention that documentation for optimization functions is also refined! There are some minor changes and improvements. The new version is enclosed within optimization-fix8.zip.
par lukamar
mer. sept. 13, 2017 9:05 am
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

Thanks for the upgrade! Everything works fine, except that 'extrema' and 'periodic' are not highlighted as other commands. Could the option keywords starting with 'lp_' for 'lpsolve' be highlighted as well? I've worked on the code for some more time and I've rewritten some parts used by minimize, ma...
par lukamar
dim. sept. 10, 2017 4:08 pm
Forum : Bugs
Sujet : lvar counting some constants as variables
Réponses : 1
Vues : 2556

lvar counting some constants as variables

Hi!

The output from 'lvar' may sometimes be counterintuitive (or there is simply a bug). For example, the command

Code : Tout sélectionner

lvar(expexpand(exp(x+1)))
returns [exp(x),exp(1)]. According to the help index, 'lvar' returns a list of variables with rational dependence, but the second element is a real constant...
par lukamar
jeu. sept. 07, 2017 6:56 am
Forum : Bugs
Sujet : solve
Réponses : 5
Vues : 5070

Re: solve

There is a bug in function 'solve'. When I enter

Code : Tout sélectionner

assume(x>-pi/2 and x<pi/2); solve(1/(1+tan(x)^2)=0,x)
'solve' returns [-pi/2,pi/2]. But not only these points are excluded from domain of x, but the expression 1/(1+tan(x)^2) can't vanish because it's undefined for x=k*pi/2, where k is integer.
par lukamar
mar. sept. 05, 2017 4:55 pm
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

Thank you, i have mirrored this in my version of code. g++ wasn't complaining, so I missed it...
par lukamar
mar. sept. 05, 2017 6:59 am
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

Yes, it probably will... I have simplified the test. Since there is at most one singularity between two consecutive x-points (say x1 and x2) in most cases (actually I've never seen a counterexample, but I'm not sure that it does not exist), I weakened the test a bit: now it checks only the sign of i...
par lukamar
lun. sept. 04, 2017 11:36 pm
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

I fixed couple of bugs. 1. The function '_minimize' was returning some meaningless results in cases when 'location' was not given because of applying '_feuille' at the end. 2. Functions 'minimize', 'maximize' and 'extrema' must make some assumptions in certain cases, namely when the variables are en...
par lukamar
dim. sept. 03, 2017 10:48 pm
Forum : Giac
Sujet : nonlinear optimization functions
Réponses : 77
Vues : 47813

Re: nonlinear optimization functions

Forgot to add lines 1790-1792 in optimization.cc. Just replace the file in fix4 with this one.