# Questions tagged [attributes]

Questions on attributes of functions.

115 questions
Filter by
Sorted by
Tagged with
28 views

### Using the value of OptionValue to clear a list

I'm currently using OptionValue inside a function, the Option I passed to the function should be cleared, then populated with ...
100 views

### When do functions apply on lists and when they do not

I have read in my lecture notes on Mathematica that functions (in the general sense) can be applied to lists of data and that they can return new lists with data. I have tried this and I have got ...
98 views

### Is it possible to make listable ExperimentalNumericalFunction?

I have been playing a bit with the undocumented function ExperimentalCreateNumericalFunction and I wanted to know if somebody found a way to make generated ...
84 views

### Construct a function that maps strings to functions

The main question is the last 5 lines (including codes) of this article. A[x_, y_] := Evaluate[ToExpression["x^2+y^2"]] A[3,4] Then the output becomes ...
33 views

### Mathematica: Remove argument from object with flat attribute

I have an object in mathematica with the attributes Flat and OneIdentity. I also defined the following substitutions: ...
156 views

### TreeForm and Unevaluated

Bug introduced in 8.0.4 or earlier and persisting through 12.0 or later Check this example: ...
39 views

### Mapping function into elements of Sum

I'm trying to set an attribute that's valid for a generic sum, where n and f are arbitrary. de[A_ + B_] := de[A] + de[B] de@Sum[f[i], {i, n}] Is this possible? ...
692 views

### Is it safe to Unprotect everything? What are the implications?

What is the reason for built-in symbols to be Protected? What happens if I Unprotect built-ins and add my own ...
125 views

### Returning the argument of a function if the argument is not of the right type

Best to give an example. Let us consider the function AdjacencyMatrix. When we pass, say a matrix to it, we get: ...
46 views

### Preventing an output of a function from being assigned a value

Say I have a function Example[n_Integer]:=n{x,y,z} Example@4 {4 x, 4 y, 4 z} Now, let us assign some values to ...
120 views

### Plus wrongly applies OneIdentity to eradicate itself in Plus[Power[_, 2] ..], unreproducible

I was trying to match some polynomials, but this is weird: ...
24 views

### Redefining the inbuilt function and its derivative [duplicate]

I want to redefine the DiracDelta functions and its derivatives. I am successful at redefining the DiracDelta function but not ...
70 views

67 views

### What's with the weird HoldRest Attribute of ParallelMap?

Bug introduced in 10.0 or earlier and persisting through 11.1 I have noticed some odd behavior of ParallelMap: When the list, that is mapped over, is not inserted ...
118 views

### What is the correct usage of HoldFirst?

I encountered a situation where using HoldFirst seems to do the trick for the specific task, but I am uncertain about the proper use of this attribute. Consider ...
38 views

### Why does ReplaceAll change the ordering of expresssions?

I wrote the following replacing statement: ...
4k views

### How to differentiate formally?

I have been wrapping my head around this for a while now and I have not found a solution so far. I want to work with an arbitrary number of variables in Mathematica and use some built in functions. To ...