Questions tagged [attributes]

Questions on attributes of functions.

Filter by
Sorted by
Tagged with
2
votes
1answer
131 views

Map and Scan ignore HoldFirst

I am trying to write a simple function that takes a list of data and outputs it to a file. I'd like the name of the file to be the same as the variable that holds the list. It seems that giving a ...
5
votes
1answer
99 views

Why is NHoldFirst not propagated to symbolic derivatives?

I encountered a nasty problem that N cannot evaluate expressions containing a symbolic Derivative of a multi-parameter function ...
6
votes
2answers
303 views

Why rule does not work if Flat attribute?

The following works: ...
10
votes
1answer
519 views

Custom attributes?

Is it possible to assign custom attributes to symbols and check them later? SetAttributes[a, b] says ...
5
votes
3answers
2k views

Define an 'inner product' with AngleBracket

I want to define my own little 'Inner Product' function satisfying properties of linearity and commutativity, and I'd like to use the "$\langle$" and "$\rangle$" symbols to output my results. For ...
18
votes
1answer
391 views

Why are the attributes of Plot changing?

In version 9, with a newly started Mathematica session, try the following code: ...
33
votes
1answer
497 views

Quickly look-up usages, options and attributes of symbols

When I'm writing code in the front-end, I find myself very often looking up the list of options of a symbol over and over again in the documentation center. In most cases you find there a list of ...
36
votes
7answers
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 ...
6
votes
2answers
639 views

Force integration to be linear over sum?

Is there an obvious way to force Mathematica to separately integrate the terms in a sum? According to the docs, When part of a sum cannot be integrated explicitly, the whole sum will stay ...
5
votes
1answer
341 views

Why can't I remove Orderless from Plus?

I am making some random algebra equations, and I want to have the ordering be random too, such that if my random equation generator makes x+1, the output stays <...
11
votes
2answers
152 views

Package automated way of ReadProtecting all symbols

My template for building packages has, at the end, the following expression that automatically ReadProtects all symbols defined in my ...
28
votes
2answers
989 views

Block attributes of Equal

I answered “Equating matrices (or higher order tensors) element-wise” with: ...
9
votes
1answer
277 views

DiracDelta attributes

Is there any reason why DiracDelta isn't a NumericFunction but DiracComb is? I just ate a ...
47
votes
2answers
2k views

How do you set attributes on SubValues?

SubValues, as discussed in a previous question, are declared as follows ...
20
votes
2answers
637 views

SetAttributes[f,Flat]: Why the order dependence?

I'm experiencing a strange phenomenon. Here's a (quite artificial) test case: The following definition work just fine: ...

1 2 3