User Portlet User Portlet

Discussions
I would like to create a function that takes a numerical value and has a default value. For instance, I can define f[x_:10] := 2 * x And this works. If I would like to check whether the x is a numeric value, I can write this as ...
Hello, I have a Mathematica script (a .m file) that invokes CDFDeploy command, on a Windows 2012 Server machine. When I run it manually, the CDF file gets generated. However, when I run through Window's Task Scheduler, the code gets executed, but...
How can one get historical financial data of S&P 500 Index? Is this data available in Mathematica? This command results in missing data: In[1]:= data = FinancialData["^SPX", {"1/1/2012", "12/31/2012"}] Out[1]]= Missing["NotAvailable"]