Tag Info

New answers tagged

6

Update: Successfully debugged!! I don't know why I do this ... This is a bug in Mathematica's MAT v4 reader that can easily be fixed on the user-side. First, let's try to do the import, which will trigger loading the .mat-importer functionality. Now let's look at the following function System`Convert`MATDump`myImportMAT4: Notice the Switch listing ...


4

Yes, this was a bug. It has been fixed as of 10.0.2. In[1]:= Quantity[2, "meters"] Out[1]= 2 m


5

This is not a full answer, just some analysis of some of the problems we see here. Interpolation[tab, InterpolationOrder -> 1] should work, but it fails like this: Interpolation[tab, InterpolationOrder -> 1] Interpolation::femimq: The element mesh has insufficient quality of -2.05116*10^-13. A quality estimate below 0. may be caused by a wrong ...


0

Not sure if this will work, but I had a styling issue that was helped with: Awful styling in MMA10's Plot


5

Not an answer, but possible hint as to what's going on: Try the following in Mathematica 9 and 10. (*1*) Limit[1 + Log[-a - I y], y → 0, Direction → -1, Assumptions → {a > 0}] (* 1 + I*π + Log[a]*) (*2*) Limit[1 + Log[-x - I y], y → 0, Direction → -1, Assumptions → {x > 0}] (* 1 - I*π + Log[x] <-- in v9 only.*) In v9, the one with x is right, ...


6

In version 10.0.2 Mathematica is using an incorrect standardization rule Statistics`Library`StandardizationRules[{x, y}, MultinormalDistribution[{0, 0}, {{2, 0.5}, {0.5, 1}}]] {{x -> x/Sqrt[2], y -> y}, MultinormalDistribution[{0, 0}, {{1, 0.353553}, {0.353553, 1}}]} This is incorrect as Expectation[(x y)/Sqrt[2], {x, ...


5

PlotMarkers are passed to the legends via the LegendMarkers option. Here it looks like only 15 markers are being passed in, e.g. In[3]:= plot = ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]; In[4]:= Cases[plot, HoldPattern[LegendMarkers -> l_] :> l, ...


7

I believe this can be considered a bug, but it is also related to the (IMHO) non-bug behavior of automatic styling described in PlotLegends won't generate automatically more than 15 labels in v10. We see that if we use PlotLegends -> Automatic the number of legends is limited to the number of styles: ListPlot[Table[{j, i}, {i, Range[20]}, {j, ...


2

markers = {#, Large} & /@ PadRight[#, 20, #] &@ Graphics`PlotMarkers[][[All, 1]]; ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, PlotMarkers -> markers, PlotLegends ->LineLegend[Range[20], LegendMarkers -> markers]]


1

It works fine in MMA 9: ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, PlotMarkers -> Automatic, PlotLegends -> LineLegend[Range[20]]] It looks like a bug in MMA v10


1

Try making a list of all the PlotMarkers: ListPlot[ Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, PlotStyle -> Table[Hue[i/20], {i, 20}], PlotMarkers -> (Text[Style[#, 16]] & /@ CharacterRange["a", "z"]), PlotLegends -> Range[20] ] I suspect that the default list of PlotMarkers has only ...


2

I can reproduce this problem on OS X with Mathematica 10.0.2, but with XLS and XLSX files only. Thus it's different from this bug which existed in version 10.0.0 and affected all files, and was fixed later. I believe that this is a bug and you should report this to Wolfram Support so it can be fixed. Mathematica.SE is not a website run by Wolfram ...


1

If you increase the `GapPenalty" (default is zero) you can pick up the 3; however, the difference sequences get longer and the total similarity score decreases. SequenceAlignment["-0.999995756767227832383453368554576431549", \ "-0.999995756767227832383346049698547342279", GapPenalty -> 3] {"-0.999995756767227832383", {"453368554", "346049698"}, "5", ...


1

Mathematica took the alignments in the following way -0.99999575676722783238x34 -0.99999575676722783238334


3

Despite the command name, "Copy As LaTeX", Mathematica does not in fact have a feature (in the expected sense) for accomplishing this. Your expressions will be evaluated when creating the $\TeX$ representation. Your only recourse is to create a workaround that explicitly uses TeXForm to create $\TeX$ representation. For example, you can use TeXForm and the ...


8

Confirmed in 10.0.2.0 Windows x64. Min takes exponential time with respect to the number x of TimeObjects to analyze: Using Fit[timings, {1, x, Exp[x]}, x] on my results here, I get the following equation for the time required: -0.0644554 + 2.89365*10^-6 E^x + 0.0157914 x so, finding the minimum of 20 TimeObjects would level in somewhere around ...


10

I can confirm the problem in 10.0.2 under Windows. I think it can only be a bug. One can at least work around the problem in this example using MinimalBy and MaximalBy: times2 = RandomSample[times]; (* start with a random order *) MinimalBy[times2, Identity, 1] // Timing {0., {TimeObject[{0, 14, 55.99}]}} MaximalBy[times2, Identity, 1] // Timing ...


15

It seems that there is a significant overhead every time a color scheme is switched. Once a scheme is loaded each use is fast, but changing color schemes apparently unloads and reloads the mechanism. The result is that the speed of application is directly related to the frequency of switching. With sorted values there is only one switch and application is ...


3

I have the same problem. I contacted mma support (I have a premier license) and they said that this is a bug. I reported this problem in version 10.0.0 and it still exists in 10.0.2.0, so who knows when it will be fixed.


10

It is a bug in Reduce. It affects cases when the input contains a univariate equation f==g inside the ForAll quantifier, f-g is not an explicit polynomial, and Together[f-g] is zero. Thank you for pointing it out.


2

John Fultz gave a great talk about the templating system at the European Wolfram Technology Conference in 2014 - http://www.wolfram.com/events/technology-conference-eu/2014/presentations/Fultz_ReportGeneration.nb As requested, here's a video of John doing madlibs http://www.wolfram.com/broadcast/video.php?sx=Report%20Generation&v=1096


2

Quick fix is to use Pane[#, ImageMargins -> {{0, 10}, {5, 5}}] & on tabs contents. Not convenient but working. Probably also OS dependent solution... To not copy this I'm using a function which can be used directly on TabView: tabViewFix1 = Function[tabView, MapAt[ Pane[#, ImageMargins -> {{0, 10}, {5, 5}}] &, ...


3

This seems like a bug. Additional examples that would need to be explained if it is not: foo[2 I u Sin[x]] /. foo[Complex[0, _] u Sin[x]] :> bar foo[2 I u Sin[x]] /. foo[Complex[0, _] (p : u) Sin[x]] :> bar foo[2 I u Sin[x]] /. foo[Complex[0, _] HoldPattern[u] Sin[x]] :> bar foo[2 I u Sin[x]] bar bar So the problem is unrelated to ...


4

I don't know why Exp[2 I u Sin[x]] /. Exp[Complex[0, a_] u Sin[x]] :> a doesn't work as expected, except that MatchQ[Exp[2 I u Sin[x]], Exp[Complex[0, a_] u Sin[x]]] gives False However, since the apparently more general MatchQ[Exp[2 I u Sin[x]], Exp[Complex[0, a_] u_ v_]] gives True you could use Exp[2 I u Sin[x]] /. Exp[Complex[0, ...



Top 50 recent answers are included