Reputation
1,303
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 14
Newest
 Yearling
Impact
~53k people reached

Apr
20
comment How to make Huffman coding by using tree representation
This is the exact answer mathematica.stackexchange.com/questions/42734/…
Jan
4
answered Is Mathematica worth it for me?
Jan
2
comment make constant some elements of a list
As far as I know there is no concept of position based constants in Haskell, Mathematica,Lisp, Maxima. In all these lists are mutable. If you think that you will always have more than a specified number of elements, then may be you should use array to force a lower bound on number of elements, because what if you have only one or no element left in your list. May be packages can help you where you can write interface methods for users and do the necessary checking inside private methods.
Dec
31
answered Problem with handling a factor of $1$ in pattern matching
Dec
29
revised Reverse Polish Notation
deleted 215 characters in body
Dec
29
comment Reverse Polish Notation
@MarkAdler : I think its invalid expression. {a,b,+} on stack, poped as a+b, a+b in stack, push c, then push d, then pop c+d, push c+d over a+b, but there is no more operand for these two !!
Dec
29
answered Reverse Polish Notation
Dec
12
comment Can equation solving be done in parallel?
You cannot solve equations in parallel if they share variables to be solved for. Though you can speed up computation if the number of unknowns increase in subsequent equations by solving a few at a time and substituting the unknown in subsequent equations before solving them. I wrote this program for maxima academia.edu/7726011/… , it reduced the time taken to solve by 3 times, my guess is that it will be equally relevant for MMA.
Dec
12
comment How can I pass arguments to Module without being reinterpreted each time they appear inside it?
@Nasser : I understand that its an observation, I should have chosen my words carefully. In my opinion this local is nothing but a new temporary context, but then it can only be a guess.
Dec
12
comment How can I pass arguments to Module without being reinterpreted each time they appear inside it?
@Nasser : I don't think that correctly answers the question because in that case lm+mat2 and lm+lm should take same time, but it doesn't. In both cases, it is element by element addition.
Dec
12
comment How can I pass arguments to Module without being reinterpreted each time they appear inside it?
what do you mean Inverse operation happens many times? Result of Inverse goes in matrixOp2. I believe it has to do with implementation of Module. There could be a call to create a new context and copy information in there before proceeding and switching to old context after processing. This could be the reason for delay.
Dec
10
answered Composition of rules: a->b + b->c = a->c
Dec
9
revised Joining strings in every third element in a list
added 345 characters in body
Dec
9
comment Joining strings in every third element in a list
Very slow for large lists.
Dec
9
comment Joining strings in every third element in a list
Very very slow for large lists.
Dec
9
answered Joining strings in every third element in a list
Dec
7
answered Riffle an element with +1 every time
Dec
7
comment Generate a new list
You can also use patterns data //. {a_, b_, c__} :> {a, b}
Dec
7
comment Insert an element into the end of every list
Very slow for very large lists.
Dec
7
comment Insert an element into the end of every list
Very slow for very large lists.