909 reputation
1313
bio website
location Southern California
age
visits member for 2 years, 7 months
seen 23 mins ago

Mostly harmless.


Aug
28
comment How to get Symbol[“x”]=3 to work
Ah, ok. I didn't know that Clear works on strings. In any case, I want to be able to do this without clearing the definitions, and your ToExpression approach does the trick.
Aug
28
comment How to get Symbol[“x”]=3 to work
Ah. I hadn't tried it. So the Clear is not necessary? The whole point of the question is to not have to clear the definition of x first. If you clear the definition first, then the Evaluate works fine, since the symbol x evaluated is just x.
Aug
28
comment How to get Symbol[“x”]=3 to work
So what I did may be a Bad Thing, but it is this: Unprotect[Set]; Set[s_?StringQ, v_] := ToExpression[s, StandardForm, Function[x, x = v, HoldFirst]]; Protect[Set];. Then I can simply "x"=3 and it works! Set normally gives an error if the left hand side is a string, so I think this is ok. For me anyway, this is a natural and useful extension of Set.
Aug
28
comment How to get Symbol[“x”]=3 to work
While ToExpression works, I was hoping for something that gave finer control over evaluation, e.g. allowing only one step of the evaluation to take place. Control of evaluation has always been a bugaboo for me in using Mathematica.
Aug
28
comment How to get Symbol[“x”]=3 to work
@Jens: Clear[x] is not useful, since I would actually have to do Clear[Symbol["x"]], which runs into exactly the same problem.
Aug
28
comment How to get Symbol[“x”]=3 to work
Yes, ToExpression looks like the right approach. ToHeldExpression is marked as obsolete.
Aug
28
comment How to get Symbol[“x”]=3 to work
Thanks! When I searched I didn't find any of those. The closest is 783.
Aug
28
asked How to get Symbol[“x”]=3 to work
Aug
28
comment Numerical value of physical constants Mathematica 10
Or just UnitConvert without the second argument, which assumes SI units.
May
29
awarded  Nice Question
May
25
revised When exporting text, how can I set the line separator?
add option
May
25
answered When exporting text, how can I set the line separator?
Apr
7
comment Can I enter the traditional form for Binomial as input in an expression?
Awesome squared. Works like a charm. Thank you.
Apr
7
accepted Can I enter the traditional form for Binomial as input in an expression?
Apr
7
comment Can I enter the traditional form for Binomial as input in an expression?
I'll look at that. Thanks. By the way, this question was also about the output. You'd have to read the entire body of the question. The title of the question is abbreviated and necessarily incomplete.
Apr
7
comment Can I enter the traditional form for Binomial as input in an expression?
Awesome! Though it comes out as Binomial[n,k] if it's not numbers. Can I get it to display in the traditional form without having to use TraditionalForm?
Apr
7
asked Can I enter the traditional form for Binomial as input in an expression?
Mar
27
comment Is there the full Wolfram Language in Mathematica?
So far, many of the functions in the demo are not even in the 10.0 on the Raspberry Pi.
Mar
26
awarded  Quorum
Mar
25
awarded  Fanatic