Saburo Higuchi

Dr. Saburo Higuchi

5 Reputation

0 Badges

8 years, 230 days
http://hig3.net

MaplePrimes Activity


These are replies submitted by Saburo Higuchi

Hello,

Thank you, William. Your answer on StringTools is clear, useful, and surprising to me. Package specification with square brackets normally works in Maple T.A. Algorithm, for example, MathML[ExportPresentation]($f). I wonder if there is something exceptional in StringTools.

In fact, I have not succeeded in giving a list as the first argument of StringTools:-Search.

$test1=maple('StringTools:-Search(["cos"],"cos(0)")');
$test2=maple('StringTools:-Search(["os","cos"],"cos(0)")');
$test3=maple('StringTools:-Search(["os","co"],"cos(0)")');
$test4=maple('proc() StringTools:-Search(["os","co"],"cos(0)") end proc;
');
test1 1
test2 2
test3 0
test4 proc () StringTools:-Search("os","co","cos(0)") end proc

I expect the return values

  • [1,1]
  • [1,2],[2,1]
  • [1,2],[2,1]

for test1,2, and 3.

Page 1 of 1