4,626 reputation
1239
bio website
location Tulsa, OK
age 27
visits member for 2 years, 6 months
seen 7 hours ago

Reservoir Engineer in the greater Tulsa area.

enter image description here


7h
awarded  Enlightened
8h
awarded  Nice Answer
9h
accepted ReplacePart equivalent for Associations
10h
comment ReplacePart equivalent for Associations
Oh, I always try to accept answers. Just typically wait to see what shakes out.
15h
comment ReplacePart equivalent for Associations
I figure the pattern error is because Alternatives isn't recognized. And yeah, the way you had it works fine, but to make a true ReplacePart alternative, I'd just like the freedom to decide Rule vs RuleDelayed. Of course, now with 10.0.2, ReplacePart works as I wanted it to and you have just taught me more about meta-programming.
1d
comment ReplacePart equivalent for Associations
(+1 by the way.)
1d
comment ReplacePart equivalent for Associations
Nice. Mine gripes about LHS being used in both fixed and variable length patterns, but whatever. I'd make one change: two definitions for Rule and RuleDelayed -- sub[asc_, RuleDelayed[{LHS__} | LHS_, RHS_]] := asc[LHS] := RHS sub[asc_, Rule[{LHS__} | LHS_, RHS_]] := asc[LHS] = RHS
2d
comment ReplacePart equivalent for Associations
Also the functions may contain random variables or distributions, so I think I'm stuck with the deferred assignments.
2d
comment ReplacePart equivalent for Associations
Glad to see this was remedied in 10.0.2. I'll be contacting my IT folks tomorrow. And yes, the deferred functions are necessary as the phase function are sometimes dependent on one another and may not be defined in order of dependence. Thanks!
2d
revised ReplacePart equivalent for Associations
edited body
2d
asked ReplacePart equivalent for Associations
Nov
16
awarded  Popular Question
Oct
27
comment What is the meaning of //N in mathematica?
@rcollyer Agreed, but regardless is a good intro to Postfix notation.
Oct
27
comment What is the meaning of //N in mathematica?
See Postfix and N.
Oct
13
comment Odd problem with Module
Even weirder, if you place Trace around the x = Flatten[inputData];, all values seem to be assigned correctly. Otherwise x still equals Flatten[$Failed].
Oct
13
comment Odd problem with Module
Really weird. This behavior doesn't exist if you input the entire file path into the Import function (C:\\Users\\username\\test1.xlsx).
Oct
10
comment How can I obtain a smooth curve from my data but preserve two inversion points
@Ixy Just replace GaussianFilter with WeinerFilter.
Oct
10
revised How can I obtain a smooth curve from my data but preserve two inversion points
deleted 236 characters in body
Oct
10
revised How can I obtain a smooth curve from my data but preserve two inversion points
Added another filter to use
Oct
10
reviewed Close Manipulating list of matrices