Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Mathematica giving length of array wrong!!' topicStudent Support Forum > General > "Mathematica giving length of array wrong!!"

Next Comment >Help | Reply To Topic
Author Comment/Response
Sharjeel Tahir
07/27/10 2:44pm

in the notebook attached, the list wallintersectionlist has some elements that have three sub-elements in them and some elements that have two sub-elements in them. For the elements that have three sub-elements in them, mathematica is giving me an answer of 2 instead of three for these elements. In addition, i used Map[Length, wallintersectionlist] and i get an array with 2's even though there are some elements in the array that have 3 sub-elements.



Attachment: 2d_ray_tracing_new.nb, URL: ,

Subject (listing for 'Mathematica giving length of array wrong!!')
Author Date Posted
Mathematica giving length of array wrong!! Sharjeel Tahir 07/27/10 2:44pm
Re: Mathematica giving length of array wrong!! Peter Pein 07/31/10 9:52pm
Re: Re: Mathematica giving length of array wron... Sharjeel Tahir 08/06/10 00:18am
Re: Mathematica giving length of array wrong!! yehuda ben-s... 08/01/10 07:30am
Re: Mathematica giving length of array wrong!! Sharjeel Tahir 08/06/10 00:05am
Next Comment >Help | Reply To Topic