Questions tagged [subvalues]

Questions about SubValues which specify function definitions for symbols.

7 questions
Filter by
Sorted by
Tagged with
37 views

Saving DownValues for a function computed in parallel

Is it possible to save DownValues of a function computed using a parallelization routine? I have a rather costly function f I wish to evaluate at a grid and save ...
220 views

How to select specific subvalues from a function definition

Consider: h[tag1] = 1; h[tag2] = 2; h[tag1] = 3; h[tag2] = 4; Is there a fast way to obtain downvalues for only h, or h? For example ...
200 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: ...
78 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 ...
85 views

Constructing an Array from typed expression

I want to produce an array from expressions given by test[one] = 3; . . test[one] = 7; etc. Normally would use ...
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 ...