Ben Kalziqi
  • Member for 6 years, 1 month
  • Last seen more than a week ago
  • Atlanta, GA, United States
Taking the product of a list of matrices
Accepted answer
14 votes

Dot@@data should do what you're looking for. It replaces the main Head, List, with Dot, which just multiplies all of the matrices—which used to comprise the List data—together. data = Table[...

View answer
Mathematica 11 with High DPI 4k screen
Accepted answer
11 votes

The best thing to do, IME, is to set the default notebook zoom level to something higher. This way, the text is rendered crisply and at a reasonable size. You can do that as follows: Go to ...

View answer
Exporting an animation as a gif file
9 votes

You should export just the List, not the object created by Animate. For this, Table is a good idea. Export["vectors.gif", Table[Graphics[{White, Arrow[{{0, 0}, {a, b}}]}, GridLines -> Automatic, ...

View answer
Possible Bug in DiscretizeRegion
5 votes

This appears to be fixed in v11, at least. GraphicsRow[DiscretizeRegion[Circle[{0, 0}, 1, #]] & /@ {{0, 2}, {0, 2.}}]

View answer
Can I obtain true colours with .stl files from my 3D plot?
Accepted answer
4 votes

As far as I'm aware, the STL format does not include any sort of lighting or coloring. I think that such files are simply lists of vertices of triangles and their associated normal vectors, which is ...

View answer
Direct way of listplotting each 2 or 3 points?
4 votes

The ways listed work perfectly well, but you can save yourself a couple of keystrokes just by doing myList[[;;;;2]] If you don't provide starting and ending points for the first ;;, Mathematica is ...

View answer
Can Mathematica Take Advantage Of a AMD Ryzen Threadripper 2990wx 32 Core Processor?
3 votes

If you go to Preferences->Parallel, you should see a section that shows how many cores Mathematica can use. Off the top of my head, I don't think the Student Edition can use 32 cores, but more ...

View answer
Increasing the thickness of a 3D surface
3 votes

I would try RegionPlot3D for this kind of work, depending on exactly what you're trying to generate (could we get more details?). For example, you could try something like: S1 = RegionPlot3D[-69*(...

View answer
Solving equation with Curl in angular velocity
Accepted answer
2 votes

The curl is a differential operator, yes? You haven't specified anywhere that v1, v2, and v3 are actually functions of anything, so Mathematica doesn't know what it means to take their curl. If you ...

View answer
Infinite expression, indeterminate expression when plotting polar conics
Accepted answer
2 votes

I tried to use Exclusions, but with no luck. My supposition is that the issue is using a point that generates a discontinuity as an initial point. If you instead use something like {t,.0001,2 Pi}, it ...

View answer
The easiest way to plot a family of parametric curves
2 votes

You ought to post your own attempt, as others have said. The simplest code is something like: ParametricPlot[{t - E^t + 2 #, E^t}, {t, 0, 1}] & /@ Range[0, 1, .2] You can look at the ...

View answer
Generating problem text automatically
2 votes

There are a ton of ways to do this, but I'll try to do it in a way that makes sense to somebody newer. First, a couple of things: Mathematica has a function called RandomInteger, so you can use that....

View answer
How to use quantities obtained by solving equations directly to plot
Accepted answer
2 votes

You'll want to do sol = First@Solve[{a+b==20,2a+3b==50},{a,b}]; Plot[a x + b x/.sol,{x,0,10}] Solve gives you a list of Rules. Here, there's just one such rule, but it's still wrapped in an "extra" ...

View answer
How can I crop a 3D object in the format .obj or .noff?
1 votes

You can use the undocumented/internal function Charting`get3DPlotRange That will give you the bounding box for the Graphics3D object. Then, you can just use Show with PlotRange. Cf.: In[578]:= ...

View answer
Taking Head of function in operator form (and manipulating arguments in operator form)
1 votes

A very naïve—but I think slightly faster—solution to the second part of your question may be to use strings, if your arguments do really look like you've proposed. On my test expression, which is f ...

View answer
Computing Many Differences in a Nested List
0 votes

If your list is called L, try: Differences@Flatten[L/.{_}->Nothing] I do have an extra element compared to you, though. Is that a mistake on your part, or mine?

View answer
Produce several file outputs within one calculation
0 votes

Could you not use MapIndexed for this? It looks like your data has the form d = {{d11,d12},{d21,d22},{d31,d32},...}, correct? If so, you could try MapIndexed[ Export["test" <> ToString@#2[[...

View answer