-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have this huge function and i am wondering how to make it recursive. i have the base case which should never come true, so it should always go to else and keep calling itself with the variable t increases. any help would be great
thanks
def draw(x, y, t, planets):
if 'Satellites' in planets["Moon"]:
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to calculate the sunset / rise times using python based on the link provided below.
My results done through excel and python do not match the real values. Any ideas on what I could be doing wrong?
My Excel sheet can be found under .. http://transpotools.com/sun_time.xls
# Created on…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi Guys,
I'm constructing a geolocation based application and I'm trying to figure out a way to make my application realise when a user is facing the direction of the given location (a particular long / lat co-ord). I've got the math figured, I just have the triangle to construct.
//UPDATE
So…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
so I'm trying to make a program that will output the sum, average, and smallest and largest values. I have everything basically figured out except the smallest and largest values are outputting 2147483647 and -2147483647, which I believe are the absolute smallest and largest values that Java will…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've heard many times that all programming is really a subset of math. Some suggest that OO, at its roots, is mathematically based. I don't get the connection. Aside from some obvious examples:
using induction to prove a recursive algorithm
formal correctness proofs
functional languages
lambda calculus
asymptotic…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi everybody, I'm currently reading the Mathematica Guidebooks for Programming and I was trying to work out one of the very first program of the book. Basically, when I run the following program:
Plot3D[{Re[Exp[1/(x + I y)]]}, {x, -0.02, 0.022}, {y, -0.04, 0.042},
PlotRange -> {-1, 8}, PlotPoints…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I have Mathematica 8 installed on my Ubuntu laptop since 2011. I updated Ubuntu several times, and experienced no problems with Mathematica. It also worked smoothly after I updated Ubuntu to 13.10 (it worked for sure for a week after update).
When I tried to start Mathematica today by executing…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
We all know that Mathematica is great, but it also often lacks critical functionality. What kind of external packages / tools / resources do you use with Mathematica?
I'll edit (and invite anyone else to do so too) this main post to include resources which are focused on general applicability in…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I have Mathematica 5 - a powerful CAS. I have a cheap netbook (running Windows XP), wich not only is too slow to run mathmatica on, I doubt it has the harddrive space.
I do however have remote access to a number of very powerful computers, (most of wich run variose Linuxes, but one of which is Windows…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to do a plot of a time series with DateListPlot. I want to feed it a time series I obtain from an SQL database. When I retrieve the time series the list is composed of SQLDateTime entries that DateListPlot doesn't understand.
In[24]:= t=SQLExecute[conn, "select timestamp,value from…
>>> More