Tag Info

New answers tagged


You almost had it.You were right to use Outer[]; what you missed was to interpret the sum as an appropriate matrix multiplication. Observe: Table[Subscript[m, i], {i, 5}].Outer[f, Table[Subscript[τ, i], {i, 5}], Table[Subscript[γ, j], {j, 4}]]. Table[Subscript[n, j], {j, 4}] == ...


Rather than considering this question "too simple" and closing it I tried to think of a way to make it or its answer of wider interest. It seems to me that for this question to have been asked it must not be clear that there is equivalence between <= and LessEqual, and/or that LessEqual is not a binary function but can receive many arguments. One can ...


Since Plus already does the element-wise addition, you can do: La + Lb /. Plus -> (List /* Map[ToString] /* StringJoin) This assumes the elements won't be destroyed by the plus, but as described by LLlAMnYP you can just Listableize the function: Function[{a, b}, StringJoin[ToString /@ {a, b}], Listable][La, Lb] or ToString before the operation: ...


Here's an approach for any two multi-dimensional lists of strings which have arbitrary, but matching structures: stringJoin[x__String] := StringJoin[x] SetAttributes[stringJoin, Listable] stringJoin[La, Lb] EDIT Short explanation of listability: Listable functions are effectively applied separately to each element in a list, or to corresponding ...


sLa = Map[ToString, La, {2}]; sLb = Map[ToString, Lb, {2}]; MapThread[StringJoin, #] & /@ Transpose[{sLa, sLb}] also Thread[j @@ #] & /@ Transpose[{sLa, sLb}] /. j -> StringJoin


Your current syntax is trying to Map the function {2} onto each element in the list generated transform2Time[#,10] &/@ {lst2,lst2,lst3} I think this is what you want? ulttst = N@Map[transform2Time[#, 10] &, {lst1, lst2, lst3}, {3}]

Top 50 recent answers are included