partial81
Reputation
1,351
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
 Feb4 awarded Yearling Oct21 awarded Popular Question Sep12 awarded Popular Question Aug28 awarded Good Question Jul2 awarded Curious May14 comment Is there a way to solve the linear equation, Ax=b, in which A is a “non-constant” sparse matrix that depends on x? Could you post more of your MATLAB code? This could help us to find a solution for this problem with Mathematica. Apr6 awarded Popular Question Mar20 awarded Popular Question Feb12 comment Finding all possible solutions to a math mind game Thanks a lot for this great update! This is really a very nice solution too!! Feb8 awarded Nice Question Feb8 comment Finding all possible solutions to a math mind game Thank you for this useful post! I like it much that I can define with your solution my terms etc. generally. Feb4 awarded Yearling Jan21 accepted Finding all possible solutions to a math mind game Jan21 comment Finding all possible solutions to a math mind game @Artes, Thanks for this fantastic answer and for editing my question! Now I understand the code very well! Sorry for not mentioning from beginning on that e.g. e=w is not allowed, I thought this is obvious. To the 1 to 9 or 0 to 9 problem: I am not unsure about this ;-) The book from where I have this mind game uses 1 to 9. I guess, it does this because it is then a bit more difficult to find a solution by mind (only 6 possibilities instead of 14 or 46). Anyway, thanks again for your help! I learned much about writing nice code and I hope you and others had fun with this game;-) Jan21 comment Finding all possible solutions to a math mind game @Rojo! Your add is easy to understand! Thanks a lot, that is really a nice idea! I am very happy about yours, Öskås and Artes help! If I find time, I will join the chat to ask questions about the code. Thanks for the invitation and thanks again for the help! Jan21 comment Finding all possible solutions to a math mind game Thanks @Öskå for this fantastic add! Unfortunately your code is above my programming knowledge. If you find time, could you please describe shortly how it works? Perhaps you post also a complete new answer, then I would love to accept yours! Anyway, Thanks a lot!! Jan21 revised Finding all possible solutions to a math mind game added 146 characters in body Jan21 comment Finding all possible solutions to a math mind game Thank you for the quick reply and nice approach! But in your case (e.g. sol[[301]]) it would be: e = i = 5. But this is not allowed too (I will make this more clear in my question). How can I get rid of these wrong solutions? Jan21 asked Finding all possible solutions to a math mind game Dec5 comment Using FindFit for step functions If you need step functions for your data sets, why don’t you work with Piecewise (see manual)?