Is there concise code for the list operation I want to perform?
Animate Koch curve generation and include a transition effect
How to find the sum for each individual row in a binary matrix until the first zero is reached from left to right.
Replace element in array by checking condition in another list
Geometry computations add-on for Mathematica?
Trace of the points of intersection of two moving curves
How to delete the parameter of a Neural Network?
Is there concise code for the list operation I want to perform? Is there any concise syntax for the following partitioning of a list. Given {1, 2, 3, 4}, I want to get the output as shown below. I have tried various function such as Partition and others, but I ...
- asked by vikas (10 votes), answered by kglr (16 votes)
Animate Koch curve generation and include a transition effect Recently, I saw two kinds of animation of Koch curve iteration generation. I don't know how to make this effect, now I can only do this Clear[koch]; koch[{A_, B_}] := Partition[ {A, (2 A ...
- asked by mathe (10 votes), answered by Kuba (14 votes)
How to find the sum for each individual row in a binary matrix until the first zero is reached from left to right.
I have a 150 by 300 binary matrix. I would like to sum the 1's for each individual row (from left to right) until the first zero is encountered. For example, if a given row is 1 1 1 1 1 1 0 0 0 1 0 0 ...
- asked by Tiffany Visgaitis (7 votes), answered by eldo (8 votes)
Replace element in array by checking condition in another list Im trying to escape doing double loops given the large number of items in the arrays. I have two list with a format like this: list1={{1,2,0},{1,3,0},{4,6,0},{2,3,0}} (*Third element of each item is ...
- asked by Giovanni Baez (7 votes), answered by Carl Woll (8 votes)
Geometry computations add-on for Mathematica? https://mathematica.stackexchange.com/questions/151304/geometry-computations-add-on-for-mathematica
I came across the problem of calculating the circumcenters of triangles symbolically within another algorithm (as well as possibly doing other similar geometry computations). I was hoping Mathematica ...
- asked by Grayscale (7 votes), answered by C. E. (10 votes)
Trace of the points of intersection of two moving curves I would like to trace the points of intersection between the polar curves r == Cos[n + k t] and r == t Csc[] as t goes from -1 to 1. (n and k are constants, and y, r, and relate in the ...
- asked by 404UserNotFound (6 votes), answered by Carl Woll (11 votes)
How to delete the parameter of a Neural Network? Mathematica Neural Networks based on MXNet. And there is lots of model in MXNet(MXNet Model Zoo). For example,I follow a tutorial An introduction to the MXNet APIpart 4, It uses Inception v3(net ...
- asked by partida (5 votes), answered by xslittlegrass (3 votes)