# Tag Info

## New answers tagged memory

0

After digging around for a bit I found the tutorials in the standard documentation: FEMDocumentation/tutorial/SolvingPDEwithFEM and FEMDocumentation/tutorial/FiniteElementProgramming. Both have sections on methods to trade memory/time/accuracy, but the first tutorial is way easier for people new to Mathematica! The most promissing proposals seem to be: ...

0

I generate some test data. SeedRandom[42]; data1 = RandomReal[100., {5, 4, 3}]; ByteCount @ data1 600 Then I calculate what I think you want. m = Max @ data1 99.6966 Scale and reorder the data. data2 = Transpose[data1/m, {3, 2, 1}] ByteCount @ data2 600 I think data2 would all you need to make further computations in Mathematica, ...

7

As mentioned in the comments, here's the answer to how I got the median. I found the value $y$ that minimized $$f(y) = \int_0^1 \left| 2^x-x-y \right| dx.$$ First, to break up the absolute value in the integrand, I solved for when $2^x = y$: Solve[(2^x - x) == y && 9/10 < y < 1, x, Reals] Then I integrated and found where $f'(y) = 0$: ...

Top 50 recent answers are included