When I use Maxima to calculate the Taylor series:
f(x,y) := taylor((x+y)^3, [x, y], [2, 3], 2); f(2,3); /* error: wrong number of arguments */
Basically, I want to define a function as an extension (x+y)^3that takes as a parameter x,y. How can I achieve this?
(x+y)^3
x,y
Try
(%i1) f(x,y) := ''(ratdisrep(taylor(('x+'y)^3, ['x, 'y], [2, 3], 2))) $ (%i2) f(2, 3); (%o2) 125
or
(%i1) define(f(x, y), ratdisrep(taylor(('x+'y)^3, ['x, 'y], [2, 3], 2)))$ (%i2) f(2, 3); (%o2) 125
Source: https://habr.com/ru/post/1538077/More articles:Google maps v2 image fragment flickers when changing its width - javaHow to enable jquery lazy loading using ajax call in mvc 4 - jqueryReplication in cassandra - cassandraGnuplot: how to have some space between the axes and the pm3d diagram - mapAutomatic copy or mirror of NuGet when installing a package (push to private repo) - nugetSelenium grid node with many parallel phantomjs instances - seleniumАвтозагрузка классов в Laravel 4.1 - laravelКак оценивать код в редакторе туза - javascriptbash is the longest common part of two lines - bashHow to speed up numpy code - performanceAll Articles