User Portlet User Portlet

Discussions
One way to do this: In[1]:= list1={1,3,4,7,10,12,15,17,19,24,26,29,32,35};list2={2,5,6,7,8,9,11,12,14,19,25,27,29,30}; In[2]:= pos=Position[Table[MemberQ[list1,list2[[i]]],{i,1,Length[list2]}],True]//Flatten Out[2]= {4,8,10,13} ...
The Table function is great for this: l = Table[{i, PrimeQ[i]}, {i, 5000, 5050}] Next, you might want to create a list of all of the primes in your range. You can do that with this, though there may be better ways: primes = Cases[l,...
Since this is homework, I'll just give a couple of pointers: 1. You can do the entire thing within the Table function, similar to what you have done for your Num5 variable (btw, you really shouldn't start a variable name with a capital letter). ...
When I evaluate this notebook, I get this error: "PredictorFunction::Incompatible variable type (NumericalVector) and variable value" What is the output supposed to look like? I'm interested in neural networks, but I don't know much about them....
David, I've got that (Mens 100m Butterfly). :-) Also, I have double checked my medal counts by country against the Rio2016 site and they match, so I'm confident that I have the results presented accurately. Tim
I would use Table and Length like this: list = IntegerDigits[Range[100]^2]; Table[Length[list[[i]]], {i, 1, Length[list]}] I'm sure that there are other ways, but this one is pretty straightforward.
This might be helpful, though it isn't hosted here. http://mathematica.stackexchange.com/questions/18/where-can-i-find-examples-of-good-mathematica-programming-practice
Gregory, Maybe try something like this: nb = Last[ Import["C:\\Users\\YourName\\Desktop\\This is an RTF file.rtf", "Rules"]] That should open a new notebook that contains the text contents of the RTF file. From there, I think you...
How about using Permutations? In[1]:= data = Range[4] Out[1]= {1, 2, 3, 4} In[2]:= Permutations[data, {2}] Out[2]= {{1, 2}, {1, 3}, {1, 4}, {2, 1}, {2, 3}, {2, 4}, {3, 1}, {3, 2}, {3, 4}, {4, 1}, {4,...
Looks like nobody is answering. I have an idea that might work, but I haven't implemented it. You can copy equations and paste them as MathML into a text editor (you may need to set the option in Word to "Copy MathML to the clipboard as plain...