Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Mathematica procedural programming problems' topicStudent Support Forum > General > "Mathematica procedural programming problems"

Next Comment >Help | Reply To Topic
Author Comment/Response
Hannes
09/13/11 1:24pm

I am facing some troubles using mathematica's procedural programming capabilities. I do have quite some experience in programming, I am however fairly new to Mathematica.

I decided to start with a rather simple recursive function that should return a list of lines to use to draw a recursive tree.

I have attached my function as a notebook.

The problem right now is, that while it works as expected in the trivial case n=0, I get no result at all for any other positive n. I can't see why this is happening.

Attachment: recursiveTree.nb, URL: ,

Subject (listing for 'Mathematica procedural programming problems')
Author Date Posted
Mathematica procedural programming problems Hannes 09/13/11 1:24pm
Re: Mathematica procedural programming problems yehuda 09/14/11 08:45am
Re: Re: Mathematica procedural programming prob... Hannes 09/14/11 3:12pm
Re: Re: Re: Mathematica procedural programming ... Airborne 09/14/11 11:20pm
Re: Re: Re: Mathematica procedural programming ... Hannes 09/15/11 05:24am
Re: Mathematica procedural programming problems Patrick 09/15/11 11:57am
Re: Mathematica procedural programming problems Hannes 09/15/11 2:19pm
Re: Re: Mathematica procedural programming prob... yehuda ben-s... 09/16/11 01:40am
Re: Re: Mathematica procedural programming prob... yehuda ben-s... 09/16/11 09:17am
Next Comment >Help | Reply To Topic