Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    $\begingroup$ I believe you want Block rather than With. For instance, Block[{A = 1, B = 2}, f[A, B]]. If you Trace the evaluation, you will see that the numbers get plugged in before it finds the Eigensystem. Of course, it's still doing it symbolically. To force it do it numerically, do A = 1., for instance. I think you can also do f[A = 1, B = 2] if you would like to simultaneously set the values of A and B. As for the rest of the stuff, I'm not sure. $\endgroup$ Commented Sep 21, 2015 at 17:13
  • $\begingroup$ @march Great! Now I see the difference. Thanks. $\endgroup$ Commented Sep 21, 2015 at 17:20
  • 4
    $\begingroup$ Definitely check out What are the use cases for different scoping constructs?. $\endgroup$ Commented Sep 21, 2015 at 17:57
  • 1
    $\begingroup$ By the way: it's preferable not to start your variable and function names with an uppercase letter to avoid conflicts with built in names. Your Bin is already dangerously close to such a conflict. $\endgroup$ Commented Sep 21, 2015 at 18:09