## Tag: function-construction

94 Functions with Options 2012-01-20T14:15:37.157

72 Functions vs. patterns 2012-01-26T01:02:37.550

67 How to avoid collision between optional arguments and options 2012-02-10T06:23:54.750

50 Generating a Sierpinski carpet 2013-03-25T16:23:26.740

44 Can I make a default for an optional argument the value of another argument? 2012-12-04T20:36:20.120

44 Why is there no PositionFunction in Mathematica? 2013-05-21T13:16:02.057

44 Is there any algorithm that runs faster in Mathematica than in C or Fortran? 2019-10-17T05:35:48.853

43 Function in Table 2012-07-01T17:10:38.567

40 Variable naming changes everything 2013-05-14T12:29:19.707

39 Can a function be made to accept a variable amount of inputs? 2012-06-09T01:18:26.203

39 Tiling a square 2012-06-14T18:01:18.130

39 How can I make threading more flexible? 2013-04-16T15:37:27.490

37 How can I export my learned ClassiferFunction[] and PredictorFunction[]s? 2014-07-31T15:40:50.020

36 Define parameterized function 2012-07-06T22:03:31.460

36 Can we intelligently control evaluation in Thread? 2017-02-25T23:49:52.350

34 which is better, using Assert[] or manual checks on arguments and other computations? 2012-01-18T09:55:41.347

34 Best practice of passing a large number of parameters to functions 2014-07-25T10:23:28.763

34 Is there a comprehensive list of functions with operator forms? 2014-09-18T19:44:42.247

33 How to Combine Pattern Constraints and Default Values for Function Arguments? 2012-05-01T02:06:15.383

33 How to make MapAt work with Span? 2012-05-28T06:59:03.907

32 Is there any way to define pure functions with optional arguments? 2013-07-26T07:44:31.670

31 Why does removing a function and defining it on the same line not work? 2016-10-16T02:39:18.727

30 Function that counts the number of arguments of other functions 2012-06-19T14:25:09.850

29 How does Return work? 2011-12-16T12:43:37.630

28 Using patterns in pure functions 2012-03-19T08:32:36.453

28 Convert an expression to a Function 2012-08-30T15:58:55.223

28 Second level depth pure function? 2012-12-26T01:40:02.663

27 Sum over n variables 2012-01-18T10:13:25.147

27 Custom atomic expressions - modern tutorial 2019-05-15T08:15:48.107

26 Module with "local functions" 2013-02-27T16:49:59.707

26 Constructing symbol definitions for With 2013-07-15T13:56:24.910

26 Is there a GraphicsPrimitiveQ (or a complete list of Heads of graphics primitives)? 2015-07-15T21:04:41.333

26 Writing functions with "Method" options 2016-04-01T18:19:00.803

24 How to program a F::argx message? 2013-04-15T18:38:35.373

24 Why x = x doesn't cause an infinite loop, but f[x_] := f[x] does? 2014-01-07T13:38:23.027

24 Quick way to use conditioned patterns when defining multi-argument function? 2014-07-04T06:20:25.440

24 Modeling the spread of an infection in networked computers 2017-03-15T08:21:19.900

23 SetAttributes[f,Flat]: Why the order dependence? 2012-01-19T17:52:19.033

23 Nested definition: How can I define a function with a passed-in expression? 2012-08-31T09:00:44.903

22 How to find the name of the current function? 2013-03-04T16:43:10.577

22 Plotting a defined function gives different results from plotting the function directly 2013-10-08T21:36:18.957

21 How do you check if there are any equal arguments(even sublist) in a list? 2012-06-13T08:34:09.603

21 Pattern that matches colors 2012-11-30T01:09:14.273

21 How to create custom Graphics primitive? 2013-06-18T08:12:42.463

21 Kernel inexplicably hangs if I define a pure function without suppressing output 2013-11-08T16:49:29.103

21 Should I always be using Module in functions unless I explicitly want global variables? 2016-09-21T20:27:17.940

20 Using several anonymous functions mixed together 2012-04-04T17:42:57.727

20 The difference between 0. and 0 2012-06-18T19:49:43.090

20 Lazy lists of Tuples and Subsets 2012-08-17T14:49:14.190

20 Clean and handy Options management/filtering 2015-05-05T07:47:57.310

20 Skipping "middle" Optional Arguments 2015-09-24T20:29:21.800

19 How to make a function like Set, but with a Block construct for the pattern names 2012-02-19T02:59:30.617

19 Picking random items out of a list only once 2012-04-11T14:03:44.830

19 Improving speed of code computing number of nonrepeating partitions 2015-08-14T12:15:29.390

19 Would it be a good idea to use Failure and FailureQ in own code 2016-09-22T09:43:48.773

19 Why does OperatorApplied by default reverse the arguments? 2020-03-20T14:26:42.890

18 Passing down arguments 2012-02-17T07:44:33.033

18 Is it possible to Clear all variables (but not functions)? 2012-09-26T21:50:32.787

18 Turn expression into function 2013-09-09T17:46:05.563

18 How can I evaluate only a single step of a recursive function? 2014-10-15T22:03:54.910

18 Why Function is not identical to & in autocompilation? 2016-12-03T05:54:45.957

18 Cleanest way to take a[b[c]] to a[b][c] 2019-01-23T05:58:00.747

17 What is Mathematica's equivalent to MATLAB's filter function? 2013-03-14T04:51:57.743

17 Stereographic Projection 2013-04-22T17:58:42.327

17 How to track part of symbol or how to symbolize parts of symbol without copying data? 2014-10-28T13:52:32.447

17 Is it possible to change the order that symbol definitions are checked? (DownValues vs UpValues) 2015-09-20T20:24:31.050

17 How to define a function that is Listable for some but not all arguments? 2015-12-23T16:28:43.147

17 Create a polynomial of a given degree 2016-07-16T03:31:13.143

16 Is it possible to get the order of inputs when "overloading" an orderless function? 2012-05-11T09:56:53.113

16 Modules that initialize themselves on first call 2012-10-06T16:11:39.040

16 f[arg1, arg2,...,argN] vs. f[{arg1, arg2,...,argN}] 2012-12-05T03:53:19.480

16 Multiple templates for a single user-defined function 2013-02-19T01:29:04.840

16 A function that accepts a pair or a list of pairs 2013-06-09T01:25:58.863

16 Another difference between Set and SetDelayed. Evaluation shortcut? 2014-01-10T16:19:39.053

16 How do I get Mathematica to return a function call unevaluated? 2014-05-22T13:26:57.787

16 Recognizing special cases of a defined function for permuted arguments 2014-07-23T21:36:25.853

16 Permutations of nested parentheses (Dyck words) 2017-03-27T18:13:59.443

16 Improving Performance of an XY Monte Carlo 2019-08-24T01:48:19.590

15 Constructing functions with variable number of output arguments 2012-01-19T22:47:54.570

15 What's wrong with this pattern of the form Except[Repeated[....]]? 2012-05-20T15:56:34.347

15 Converting ConditionalExpression to Piecewise 2012-06-15T16:42:05.110

15 NestList on a function of several arguments 2012-10-01T19:44:54.973

15 How to define a differential operator? 2012-12-03T11:46:58.557

15 How to create 'help' ? for a function (as documentation) 2013-01-02T17:53:34.543

15 How can I define a Listable function only apply to a vector? 2013-09-26T05:42:18.460

15 How to check the style and number of arguments like the built-in functions? 2015-06-13T05:27:53.600

15 How can I plot this spirally surface? 2016-06-20T13:46:53.423

15 Why do subsequent evaluations seem to be stopped by a False Condition (/;)? 2017-03-07T15:02:29.337

15 Flatten not working 2019-05-20T11:14:11.140

14 define a function from a list 2012-02-16T00:13:12.487

14 Pass by reference for an option argument 2013-04-22T20:51:22.220

14 Simulate MATLAB's meshgrid function 2013-08-19T03:49:39.350

14 How can one write a robust ListableQ function? 2013-09-01T13:31:20.437

14 Make a differentiable smooth sawtooth waveform 2013-12-05T09:57:48.093

14 "do ... while" loop equivalent in Mathematica 2014-03-18T10:05:02.037

14 Named patterns in Except 2015-12-12T11:00:18.683