|
|
|
J'ai ce tableau ;
| x | -2 | 0 | 5 | |-----+----+---+---| | 2 x | | | | |-----+----+---+---| | x^2 | | | | |-----+----+---+---| Je souhaiterai que les formules de la colonne de gauche soient évaluéeq pour les valeurs de x de la première rangée. J'ai essayé subst($1,@1$1,@1) et ça ne fait pas ce que j'attends. la substitution est bien faite, mais le résultat n'est pas évalué. | x | -2 | 0 | 5 | |-----+--------+-----+-----| | 2 x | 2*-2 | 2 0 | 2 5 | |-----+--------+-----+-----| | x^2 | (-2)^2 | 0^2 | 5^2 | |-----+--------+-----+-----| #+TBLFM: @<<$<<..@>$>=subst($1,@1$1,@1)::@2$1=deriv(@3$1,@< $<);E En mode calc, subst(2 x,x,5) renvoie bien 10. J'ai essayé quelque chose comme apply ou eval, mais ça ne va pas. Il y a quelque chose qui a du m'échapper dans le info de org ou de calc. |
|
|
|
dim. 14 janv. 2018, jj.retorre (Jean-Jacques Rétorré) disait :
[..] > | x^2 | (-2)^2 | 0^2 | 5^2 | > |-----+--------+-----+-----| > #+TBLFM: @<<$<<..@>$>=subst(,@1,@1)::@2=deriv(@3,@<$<);E > En mode calc, subst(2 x,x,5) renvoie bien 10. > J'ai essayé quelque chose comme apply ou eval, mais ça ne va pas. > Il y a quelque chose qui a du m'échapper dans le info de org ou de > calc. J'ai eu une réponse sur emacs.stackexchange, il suffit d'appliquer simplify à subst | x | -2 | 0 | 5 | a+1 | |-----+----+---+----+-----------| | 2 x | -4 | 0 | 10 | 2 a + 2 | |-----+----+---+----+-----------| | x^2 | 4 | 0 | 25 | (a + 1)^2 | |-----+----+---+----+-----------| #+TBLFM: @<<$<<..@>$>=simplify(subst($1,@1$1,@1))::@2$1=der iv(@3$1,@<$<);E Voilà.. |
|
|
mer. 17 janv. 2018, jj.retorre (Jean-Jacques Rétorré) disait :
> dim. 14 janv. 2018, jj.retorre (Jean-Jacques Rétorré) disait : > simplify à subst > | x | -2 | 0 | 5 | a+1 | > |-----+----+---+----+-----------| > | 2 x | -4 | 0 | 10 | 2 a + 2 | > |-----+----+---+----+-----------| > | x^2 | 4 | 0 | 25 | (a + 1)^2 | > |-----+----+---+----+-----------| > #+TBLFM: @<<$<<..@>$>=simplify(subst(,@1,@1))::@2=deriv(@3, @<$<);E > Voilà.. On peut aussi bien appliquer expand ou factor et peut-être d'autres fonctions selon le résultat désiré. |
|
|
Le dimanche 14 Janvier 2018 à 19:36 par jj.retorre :
[..] > @<<$<<..@>$>=3Dsubst(,@1,@1)::@2=3Dderiv(@3,@<$<); E > En mode calc, subst(2 x,x,5) renvoie bien 10. > J'ai essay=C3=A9 quelque chose comme apply ou eval, mais =C3=A7a ne va pas. > Il y a quelque chose qui a du m'=C3=A9chapper dans le info de org ou de > calc. > -- > JJR We (wilsonjoe279) use high quality equipment and materials to produc authentic and fake documents and Banknotes. These Banknotes are highl indistinguishable to touch, feel and naked eyes.This money carries individua serial and by pass security test including UV-Light and iodine counterfeit pen maker.These notes can be use anywhere tested and approved. We do documents such as passport,ID Cards, Driver license.All secret features of real passports are carefully duplicated for ou Registered and unregistered documents.we are unique producer of quality fals and Real documents.We offer only original high-quality Registered an unregistered passports, driver's licenses, ID cards, stamps, Visa, schoo Diplomas and other products for a number of countries like:USA, Australia Belgium,Brazil, Canada, Italian,Finland, France, Germany, Israel, Mexico Netherlands, South Africa,Spain, United Kingdom. CONTACT OUR SUPPORTERS General suppor:==========(wilsonjoe279) Contact e-mails:=====(wilsonjoe279) -IDs Scan-yes... -HOLOGRAMS: IDENTICAL -BARCODES: IDS SCAN -UV: YES FAKE IDS WITH FAST SHIPPING - EMAIL SUPPORT We offer high quality counterfeit bills for the following currencies; EUR - Euro USD - US Dollar GBP - British Pound INR - Indian Rupee AUD - Australian Dollar CAD - Canadian Dollar AED - Emirati Dirham ZAR - Rand CHF - Swiss Franc CNY - Chinese Yuan Renminbi MYR - Malaysian Ringgit THB - Thai Baht we are able to produce the following items; REAL BRITISH PASSPORT. REAL CANADIAN PASSPORT. REAL FRENCH PASSPORT. REAL AMERICAN PASSPORT. REAL RUSSIAN PASSPORT. REAL JAPANESSE PASSPORT. REAL CHINESSE PASSPORT. AND REAL PASSPORT FOR COUNTRIES IN THE EUROPEAN UNION. REAL DRIVERS LICENSE,I.D CARDS,BIRTH CERTIFATES,DIPLOMATS,MARRIG CERTIFICATES,AND VISAS. REGISTERED AND UNREGISTERED BRITISH PASSPORT. REGISTERED AND UNREGISTERED CANANIAN PASSPORT. REGISTERED AND UNREGISTERED FRENCH PASSPORT. REGISTERED AND UNREGISTERED AMERICAN PASSPORT. REGISTERED AND UNREGISTERED RUSSSIAN PASSPORT. REGISTERED AND UNREGISTERED JAPANESSE PASSPORT. REGISTERED AND UNREGISTERED CHINESSE PASSPORT. REGISTERED AND UNREGISTERED PASSPORTPASSPORT FOR COUNTRIES IN THE EUROPEA UNION. Buy Registered and unregistered USA(United States) passports, Buy Registered and unregistered Australian passports, Buy Registered and unregistered Belgium passports, Buy Registered and unregistered Brazilian(Brazil) passports, Buy Registered and unregistered Canadian(Canada) passports, Buy Registered and unregistered Finnish(Finland) passports, Buy Registered and unregistered French(France) passports, Buy Registered and unregistered German(Germany) passports, Buy Registered and unregistered Dutch(Netherland/Holland) passports, Buy Registered and unregistered Israel passports, Buy Registered and unregistered UK(United Kingdom) passports, Buy Registered and unregistered Spanish(Spain) passports, Buy Registered and unregistered Mexican(Mexico) passports, Buy Registered and unregistered South African passports. Buy Registered and unregistered Australian driver licenses, Buy Registered and unregistered Canadian driver licenses, Buy Registered and unregistered French(France) driver licenses, Buy Registered and unregistered Dutch(Netherland/Holland) driving licenses, Buy Registered and unregistered German(Germany) driving licenses, Buy Registered and unregistered UK(United Kingdom) driving licenses, Buy Registered and unregistered Diplomatic passports, Buy Registered and unregistered USA(United States) passports, Buy Registered and unregistered Australian passports, Buy Registered and unregistered Belgium passports, Buy Registered and unregistered Brazilian(Brazil) passports, Buy Registered and unregistered Canadian(Canada) passports, Buy Registered and unregistered Finnish(Finland) passports, Buy Registered and unregistered French(France) passports, Buy Registered and unregistered German(Germany) passports, Buy Registered and unregistered Dutch(Netherland/Holland) passports, Buy Registered and unregistered Israel passports, Buy Registered and unregistered UK(United Kingdom) passports, Buy Registered and unregistered Spanish(Spain) passports, Buy Registered and unregistered Mexican(Mexico) passports, Buy Registered and unregistered South African passports. Buy Registered and unregistered Australian driver licenses, Buy Registered and unregistered Canadian driver licenses, Buy Registered and unregistered French(France) driver licenses, Buy Registered and unregistered Dutch(Netherland/Holland) driving licenses, Buy Registered and unregistered German(Germany) driving licenses, Buy Registered and unregistered UK(United Kingdom) driving licenses, Buy Registered and unregistered Diplomatic passports, Registered and unregistered Camouflage passports, Registered and unregistered passport Duplicates, Registered and unregistered USA(united States) passports for sale, Registered and unregistered Australian passports for sell, Registered and unregistered Belgium passports for sell, Registered and unregistered Brazilian(Brazil) passports for sell, buy Camouflage passports, express work permits IELTS certificate,TOIC ETC express canadian citizenship docu verified id cards passport registered Canada Cards United States Cards Student Cards International Cards Private Cards Adoption Certificates Baptism Certificates Birth Certificates Death Certificates Divorce Certificates Marriage Certificates Custom Certificates High School Diplomas G.E.D. Diplomas Home School Diplomas College Degrees University Degrees Trade Skill Certificates Social Security Validate SSN Number Contact e-mails:=============== (wilsonjoe279) General Support:=============== (wilsonjoe279) |
|
|
jj.retorre (Jean-Jacques Rétorré) writes:
> mer. 17 janv. 2018, jj.retorre (Jean-Jacques Rétorré) disait : >> On peut aussi bien appliquer expand ou factor et peut-être d'autres > fonctions selon le résultat désiré. En fait c'était plus une question Calc qu'une question org-mode. Peut-être aurais-tu dû essayer directement d'évaluer ceci : (calcFunc-subst (calc-eval "2*x" 'raw) (calc-eval "x" 'raw) 2 ) Tu aurais eu cela : (* 2 2) Ou encore en evaluant : (math-format-flat-expr (calcFunc-subst (calc-eval "2*x" 'raw) (calc-eval "x" 'raw) 2) calc-internal-prec) Tu aurais eu cela : "2 * 2" Vincent. |
|
|
ven. 26 janv. 2018, vincent.belaiche (Vincent Belaïche) disait
: [..] > Ou encore en evaluant : > (math-format-flat-expr > (calcFunc-subst (calc-eval "2*x" 'raw) (calc-eval "x" 'raw) 2) > calc-internal-prec) > Tu aurais eu cela : > "2 * 2" Certes. La documentation des fonctions calc, c'est bien souvent « not documented ». ça ne donne pas envie de les utiliser. ,---- | (describe-function 'math-format-flat-expr) | #("math-format-flat-expr is a compiled Lisp function in ?calc.el?. | | (math-format-flat-expr A PREC) | | Not documented. | | (describe-function 'calcFunc-subst) | #("calcFunc-subst is an alias for ?math-expr-subst? in ?calc-alg.el?. | | (calcFunc-subst EXPR MATH-EXPR-SUBST-OLD MATH-EXPR-SUBST-NEW) | | Not documented. `---- |
|
|
jj.retorre (Jean-Jacques Rétorré) writes:
> ven. 26 janv. 2018, vincent.belaiche (Vincent Belaïche) disait > : >> Certes. La documentation des fonctions calc, c'est bien souvent « not > documented ». ça ne donne pas envie de les utiliser. Oui, il ne faut pas faire `C-h f', mais `h f' dans le tampon *Calc*, et là tu tapes le nom de la fonction calc subst (et non le nom Lisp calcFunc-subst). Alors ça te mène dans le manuel à l'endroitoù la fonction est documentée. >> ,---- > | (describe-function 'math-format-flat-expr) > | #("math-format-flat-expr is a compiled Lisp function in ?calc.el?. > | > | (math-format-flat-expr A PREC) > | > | Not documented. Ok pour math-format-flat-expr ce n'est pas une fonction calc, donc le `h f' ne marche pas, ceci dit tu la trouveras dans le manuel là: (info "(calc) Formatting Lisp Functions") Je m'aperçois d'ailleurs qu'il fallait passer 0 à PREC, et non calc-internal-prec. > | > | (describe-function 'calcFunc-subst) > | #("calcFunc-subst is an alias for ?math-expr-subst? in ?calc-alg.el?. > | > | (calcFunc-subst EXPR MATH-EXPR-SUBST-OLD MATH-EXPR-SUBST-NEW) > | > | Not documented. > `---- Là ça marche de faire `h f'. V. > -- > JJR. |
|
Fuseau horaire GMT +2. Il est actuellement 18h56. | Privacy Policy
|