A new study group for Wolfram Language Basics begins Monday, Feb 15, 2021!
Join this three-week study group to build or refresh your knowledge of the Wolfram Language. We will start slow but try to cover a broad variety of topics. No prior experience in Wolfram Language is needed to join this study group. We will provide study materials along with self-learning exercises so you can review topics on your own beyond the study group sessions.
We ran into some issues with a couple of examples during today’s session. Here are possible resolutions to those issues:
First 500 digits of Pi: ResourceFunction["NthDigit"][\[Pi], #] & /@ Range[500]
Example of using lists in the same way (domain of input values) in two different Wolfram Language functions: Table[Sin[x],{x,1,10}] and Plot[Sin[x],{x,1,10}]
Here is the example of processing the DNA sequence from the BRCA 1 gene (with the nucleotides as chemical entities instead of just string characters):
I’ve got a small noobie question. I declare a function using Module to hide local variable x. And I expect x to be local. But when I check what is x with question mark, it is says, x is global.
Are things to be that way? What don’t I understand?
Hi Fedor,
The syntax coloring is giving us a hint that the “?” is not working on the local symbol x but on the global symbol (since x appears black, not green). So it is correctly informing us of the status of the global “x”.
Perhaps you could try replacing “?x” with Information[x] which would ensure the right “x” was being used for information.
In slide 31 of the notebook for the second day, it looks like there is a small error in coding for the function FixMatrix. The code works fine for square matrices (as in the examples given), but not for general matrices, because the mapping over the column numbers is taken over the row numbers instead. It can be fixed by replacing
Range[Length[mat]] (*the list of row numbers*)
by either
Range[Length[Transpose[mat]]]
or
Range[Last[Dimensions[mat]]] (*the list of column numbers*)
Hi Ron,
Selecting the two .dat files and clicking on Download from the “… Actions” menu should allow you to download a zip containing the two data files.
That was what I did, among other variations, but nothing worked in Chrome. I switched to a different browser and had no trouble. I’m guessing there is a way of telling Chrome it’s OK to download DAT files, but I couldn’t find it on a first pass through the settings.