The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
2answers
123 views

How to select specific subvalues from a function definition

Consider: h[1][tag1] = 1; h[1][tag2] = 2; h[2][tag1] = 3; h[2][tag2] = 4; Is there a fast way to obtain downvalues for only h[1], or h[2]? For example ...
4
votes
1answer
113 views

Graphics Function Definition Style (Using SubValues vs. DownValues)

I am going through some of the items in "Modern Differential Geometry of Curves and Surfaces with Mathematica, Third Edition". An example of the style used by these authors is: ...
0
votes
1answer
65 views

use variables again after derivation

I have something the following form: a= 3*k; b=c*d*a; h[k_]=b*k^3; so if I use l[k_]=D[h[k],k] I get ...
4
votes
1answer
74 views

Constructing an Array from typed expression

I want to produce an array from expressions given by test[one][1] = 3; . . test[one][5] = 7; etc. Normally would use ...
20
votes
2answers
892 views

Define parameterized function

I would like to be able to define the gain function of a system from its parameters. Specifically, I'd like to define a function that accepts two inputs, call them $b$ and $w$, and returns a function ...
23
votes
1answer
636 views

How do you set attributes on SubValues?

SubValues, as discussed in a previous question, are declared as follows ...