Message Boards Message Boards

0
|
113 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Why does this variable forget its assignment?

Why does $\hat{\beta}$ change values? If possible, I'd like to use math notation for clarity in code like this simplified example.

Attachments:
POSTED BY: Jay Gourley
3 Replies

I suspect you’ll get the expected result shown if you evaluate in separate cells. What you are seeing, I think, is a display error but (I hope) not an error in the actual assignment.

POSTED BY: Daniel Lichtblau
POSTED BY: Jay Gourley

Weird: The first time I evaluated it, I got the buggy results. Then I copied some of the pieces and evaluated them separately. The alpha line threw a syntax error. Then I deleted my mess, and reevaluated the four-line cell. Then it worked fine. I quit the kernel and tried again. It worked fine. Maybe there's a parsing error in the original notebook. I didn't edit the first cell, but maybe it got re-parsed correctly.

It won't let me add this notebook: https://www.wolframcloud.com/obj/mroge02/Published/198902202

POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract