From: Vadim V. Z. <vv...@us...> - 2007-07-01 15:47:04
|
Update of /cvsroot/maxima/maxima/doc/info/ru In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24946 Modified Files: Program.texi Log Message: Update to original release 1.29 Index: Program.texi =================================================================== RCS file: /cvsroot/maxima/maxima/doc/info/ru/Program.texi,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Program.texi 5 Jun 2007 07:48:10 -0000 1.1 +++ Program.texi 1 Jul 2007 15:46:34 -0000 1.2 @@ -1,7 +1,7 @@ @c Language=Russian @c Encoding=CP1251 @c File=Program.texi -@c OriginalRevision=1.26 +@c OriginalRevision=1.29 @menu * Ââåäåíèå â ïðîãðàììèðîâàíèå íà Maxima:: @@ -108,7 +108,7 @@ ìîãóò áûòü ïðîèçâîëüíûìè âûðàæåíèÿìè. Åñëè ïðèðàùåíèå ðàâíî 1, òî êîìàíäà "@code{step 1}" ìîæåò áûòü îïóùåíà. -Ïåðåä âûïîëíåíèå êîìàíäû @code{do}, ïåðåìåííîé @code{variable} +Ïåðåä âûïîëíåíèå êîìàíäû @code{do}, ïåðåìåííîé @var{variable} (äàëåå íàçûâàåìîé óïðàâëÿþùåé ïåðåìåííîé) ïðèñâàèâàåòñÿ íà÷àëüíîå çíà÷åíèå @var{initial_value}. Äàëåå: (1) åñëè çíà÷åíèå óïðàâëÿþùåé ïåðåìåííîé ïðåâûøàåò âåðõíþþ ãðàíèöó, çàäàâàåìóþ @code{thru}, èëè åñëè óñëîâèå @code{unless} ðàâíî @code{true}, @@ -360,7 +360,7 @@ @code{if @var{cond_1} then @var{expr_1} elseif @var{cond_2} then @var{expr_2} elseif ... else @var{expr_0}} âû÷èñëÿåò è âîçâðàùàåò çíà÷åíèå @var{expr_k}, åñëè @var{cond_k} ðàâíî @code{true} à âñå ïðåäûäóùèå óñëîâèÿ ðàâíû @code{false}. -Åñëè íå îäíî èç óñëîâèé íå ðàâíî @code{true}, òî âû÷èñëÿåòñÿ è âîçâðàùàåòñÿ çíà÷åíèå @code{expr_0}. +Åñëè íå îäíî èç óñëîâèé íå ðàâíî @code{true}, òî âû÷èñëÿåòñÿ è âîçâðàùàåòñÿ çíà÷åíèå @var{expr_0}. Åñëè çàâåðøàþùåå @code{else} îòñóòñòâóåò, òî â êîíöå ïîäðàçóìåâàåòñÿ @code{else false}. Ò.å. @code{if @var{cond_1} then @var{expr_1}} ýêâèâàëåíòíî @@ -461,7 +461,7 @@ Åñëè ïåðåìåííàÿ @code{maperror} ðàâíà @code{false}, òî âñå @code{map} ôóíêöèè, íàïðèìåð: @example -map (f, expr_1, expr_2, ...) +map (@var{f}, @var{expr_1}, @var{expr_2}, ...) @end example (1) îñòàíîâèòñÿ íà ñàìîì êîðîòêîì âûðàæåíèè @var{expr_i}, åñëè íå âñå @var{expr_i} @@ -644,7 +644,8 @@ @c arg_1 : matrix ([a, b], [c, d]); @c arg_2 : [11, 22]; @c arg_3 : matrix ([xx, yy]); -@c xx_0 : outermap (lambda ([x, y, z], x / y + z), arg_1, arg_2, arg_3); +@c xx_0 : outermap (lambda ([x, y, z], x / y + z), arg_1, +@c arg_2, arg_3); @c xx_1 : xx_0 [1][1]; @c xx_2 : xx_0 [1][1] [1]; @c xx_3 : xx_0 [1][1] [1] [1][1]; @@ -660,7 +661,8 @@ (%o2) [11, 22] (%i3) arg_3 : matrix ([xx, yy]); (%o3) [ xx yy ] -(%i4) xx_0 : outermap (lambda ([x, y, z], x / y + z), arg_1, arg_2, arg_3); +(%i4) xx_0 : outermap (lambda ([x, y, z], x / y + z), arg_1, + arg_2, arg_3); [ [ a a ] [ a a ] ] [ [[ xx + -- yy + -- ], [ xx + -- yy + -- ]] ] [ [ 11 11 ] [ 22 22 ] ] @@ -698,7 +700,8 @@ @c ===beg=== @c outermap (F, [a, b, c], [1, 2, 3]); @c setify (flatten (%)); -@c map (lambda ([L], apply (F, L)), cartesian_product ({a, b, c}, {1, 2, 3})); +@c map (lambda ([L], apply (F, L)), +@c cartesian_product ({a, b, c}, {1, 2, 3})); @c is (equal (%, %th (2))); @c ===end=== @example @@ -708,7 +711,8 @@ (%i2) setify (flatten (%)); (%o2) @{F(a, 1), F(a, 2), F(a, 3), F(b, 1), F(b, 2), F(b, 3), F(c, 1), F(c, 2), F(c, 3)@} -(%i3) map (lambda ([L], apply (F, L)), cartesian_product (@{a, b, c@}, @{1, 2, 3@})); +(%i3) map (lambda ([L], apply (F, L)), +@c cartesian_product (@{a, b, c@}, @{1, 2, 3@})); (%o3) @{F(a, 1), F(a, 2), F(a, 3), F(b, 1), F(b, 2), F(b, 3), F(c, 1), F(c, 2), F(c, 3)@} (%i4) is (equal (%, %th (2))); |