All Questions

12,094 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
50 votes
0 answers
1k views

Hyperlinks not preserved when saving in PDF format in MMA V10

Bug introduced in 10.0 or earlier and fixed in 11.0.0 I usually create my course contracts in Mathematica and then save them in PDF format. The notebooks include hyperlinks and these have ...
user avatar
  • 2,458
46 votes
0 answers
2k views

Fast Spherical Harmonics radiative transfer

This is a rather specific question and I apologize for spamming you with some lengthy code. But it could be interesting for some reader and maybe you can help out, so please bear with me. I am using ...
user avatar
41 votes
0 answers
772 views

Front end goes wild with named slots

Bug introduced in 10 and fixed in 12.1 Assume the following simple expression {#"Test"}& Now go in front of the #...
user avatar
  • 111k
39 votes
0 answers
1k views

Performance problems in new Sequence functions

The new-in-10.1 Sequence* family of functions should provide newly optimized methods for handling sequence problems. Happily in some cases they do! For example ...
user avatar
  • 265k
36 votes
0 answers
985 views

Changing FrontEnd automatic scrolling in version 8

In Mathematica versions < 8, the FrontEnd has a very intelligent behavior: On evaluation, it by default automatically scrolls down the Notebook window to the last printed Output cell but also ...
user avatar
33 votes
0 answers
718 views

How to design CloudObjects with reasonable CloudCredit costs

Note: I originally thought to post this as a non-answer/extended comment to this question; however I feared that I would end up hijacking the original question. It is likely a duplicate with the ...
user avatar
33 votes
1 answer
694 views

Benchmarking: unexplained switching between high and low performance

tl;dr I am trying to accurately benchmark some vectorized operations, and compare them between systems. But benchmarking is hard to do well, and I am getting inconsistent results: performance is ...
user avatar
  • 227k
27 votes
0 answers
2k views

Nonlinear least squares on a GPU with Mathematica 9

Update: A Mathematica wrapper for (https://github.com/zitmen/cuLM) should allow for us to directly implement the Levenberg-Marquardt algorithm in CUDA for nonlinear least squares fitting. In a ...
user avatar
  • 761
26 votes
0 answers
1k views

Kinect on Mathematica

I saw on the internet a lot of nice experiments with Microsoft Kinect. I just bought one and would like to know if someone here has been able to use it with Mathematica. The main idea is to been able ...
user avatar
  • 25.5k
25 votes
0 answers
497 views

Compile not correctly initializing a variable defined inside Module

Bug introduced in 8.0, fixed in 10.4, intentionally reintroduced in 11.0 and persisting through 13.0.0 or later In the following example, inside the minimumX's <...
user avatar
  • 6,495
24 votes
0 answers
1k views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
user avatar
  • 63.5k
24 votes
0 answers
544 views

LibraryLink: What can we do with MInputStream and MOutputStream?

Version 9 introduced the WolframStreamsLibrary.h header for LibraryLink. It contains MInputStream and ...
user avatar
  • 227k
23 votes
0 answers
1k views

Mathematica vs. state-of-the-art SAT solvers

I found some fascinating paper by Marijn Heule and Oliver Kullmann on advances in SAT solvers and automated reasoning. In particular, the authors where able to show (a year earlier) a breakthrough ...
user avatar
  • 2,062
23 votes
0 answers
1k views

How would I improve this Karaoke machine code?

I was looking at a large collection of Import/Export user suggestions the other day and it dawned on me that we finally have MIDI import in Mathematica 9, which is rather interesting since MIDI ...
user avatar
22 votes
0 answers
1k views

How to use Charting`ScaledTicks?

I found several topics about undocumented ScaledTicks function and tried to use this. Here is the first example: ...
user avatar
  • 3,522
22 votes
0 answers
324 views

What has changed in pattern matching functions with the Orderless attribute?

Bug introduced in 10.1 and fixed in 11.0(.1) In making an attempt to answer this question, we ran into a version-dependent pattern-matching issue. An extended discussion in the comments transpired, ...
user avatar
  • 21.7k
21 votes
0 answers
369 views

Breaking change of Total in Mathematica 12.0?

Total has been changed in Mathematica 12.0. The documentation seems to contradict itself. In one line it states: Total[ $f[ e_1,e_2,...]$ ] gives the sum of the $e_i$ for any head $f$ In the next ...
user avatar
  • 913
21 votes
0 answers
628 views

Implementing Contextual Bandits

The multi-armed bandit problem (MAB) is a classic in Reinforcement learning. Now that Mathematica version 12 finally has support for Reinforcement learning: Here's a nice "mnist example" for training ...
user avatar
  • 30.6k
21 votes
0 answers
806 views

How to ImageRestyle high-res images?

I’m running v12 now and ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x 500 or ...
user avatar
  • 30.6k
21 votes
0 answers
380 views

Internal`Bag memory usage

1. How does Internal`Bag handle memory inside a compiled function? (examples below) 2. Is there a way to explicitly free up memory used by ...
user avatar
  • 5,374
20 votes
0 answers
328 views

Changes to Coefficient function in v10.2

In the version Mathemaica 10.4, I am very surprised that the core function Coefficient has changed, e.g., ...
user avatar
  • 1,217
20 votes
0 answers
211 views

Status of all Evaluators?

Since I have 4 cores on my machine I typically have 4 notebooks open each with their own kernel evaluator. I'd like to construct a dynamic pane similar to the parallel kernels status window: But that ...
user avatar
  • 30.6k
20 votes
0 answers
238 views

Inconsistent handling of Dynamic option values; intended, omission, or bug?

In answering Dynamic ClipPlanes calculated from current ViewPoint Kuba and I got into a brief exchange regarding how Option values wrapped in Dynamic should be ...
user avatar
  • 265k
20 votes
0 answers
1k views

LinearSolve and Krylov Method options

I need to solve a large, sparse, linear system. At some point Method -> "Multifrontal" fails and a bit later also "Pardiso" ...
user avatar
  • 6,923
20 votes
0 answers
449 views

Bug with Tooltip and ListPointPlot3D

Bug introduced in 10.0.0 and persisting through 11.2.0 The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...
user avatar
  • 9,909
19 votes
0 answers
229 views

Why the Callout option makes plotting performance poor

Bug introduced in 11.0 and fixed in 11.1 The Callout option is a new option for plotting, but the performance is very poor, see bellow testing case. ...
user avatar
  • 2,379
19 votes
0 answers
1k views

Convert Mathematica graphics to TikZ?

Is there a package to convert Mathematica graphics to TikZ code (for inclusion in LaTeX source files)? Such a package, dated 2016-01-30, is described at http://library.wolfram.com/infocenter/...
user avatar
  • 11.4k
19 votes
0 answers
1k views

How to protect existing MathLink connection from disconnecting

I am developing an application that consists of a Mathematica package and an external Java program. The purpose of the application is to read streamed data from a port and update a variable in the ...
user avatar
  • 191
18 votes
0 answers
244 views

New Needs alias - How to make autocomplete works

Mathematica 13 has a cool new feature for Needs. Now it's possible to use alias: Here is a simple doc example: The problem is, the autocomplete do not work for ...
user avatar
  • 25.5k
18 votes
0 answers
1k views

Find the Panda and the Cat - Dudolf puzzle

I recently find this puzzle where you have to find the panda from a group of snowmen. Having a horrible eyesight I have to take help of mathematica to find it. I start with assumption that all ...
user avatar
  • 15.6k
18 votes
0 answers
519 views

Calling Sage functions from Mathematica

I recently found a very useful open-source math software called Sage, which provides many useful functions lacking in Mathematica. Since I'm more used to the Mathematica language instead of the ...
user avatar
  • 827
18 votes
0 answers
2k views

Using TetGen in Mathematica to get 3D Voronoi diagram

In this post, the use of TetGen for 3D Voronoi tesselation has been briefly discussed. However there is still no info about the use of TetGen to generate a 3D Voronoi diagram. The TetGen documentation ...
user avatar
  • 2,751
18 votes
1 answer
515 views

How to connect to an already running interactive Python session?

As Mathematica has the interoperability with Python since M11.2, with major improvements in M12.0, is it possible to connect to already running interactive Python sessions? For example, can we connect ...
user avatar
  • 4,177
17 votes
0 answers
261 views

How to design re-usable sub-modules?

There was a recent question asking about how to design modular packages: Declaring Package with dependencies in multiples files? This is an important issue for which unfortunately there is no One ...
user avatar
  • 227k
17 votes
0 answers
1k views

Difference between UnitStep and HeavisideTheta?

In Mathematica, UnitStep[0] == 1 and HeavisideTheta[0] remains unevaluated. In addition, ...
user avatar
17 votes
0 answers
253 views

Current (e.g., ca. 2016 / MMa 10 / WP 4+) best practices for embedding interactive content in WordPress?

My strategy, in the past, has been to embed interactive CDF files into my WordPress blog for student's to use (Much like the Wolfram Demonstration Project). As many know 1) the 'Plug in' ...
user avatar
  • 1,760
17 votes
0 answers
409 views

Strategies to find curves on messy data using FindCurvePath

I have a set of data points that correspond to roots of a transcendental equation with respect to a parameter (the abscissa) which, by the properties of the system, define continuous curves (might be ...
user avatar
  • 1,579
17 votes
0 answers
615 views

C Code generated from Mathematica not working?

I am a .Net developer. I'm trying to build a Visual C++ application using C code generated from Mathematica (by another person). I don't have Mathematica installed on my machine. When I try to compile ...
user avatar
  • 171
16 votes
0 answers
367 views

Neural Network Automatic Differentiation ("Autograd")

Automatic differentiation methods in general have been the topic of past questions, but this is specifically about automatic differentiation of neural networks. The motivation is an old but useful ...
user avatar
16 votes
0 answers
446 views

Call out for a Mathematica benchmark database

Recently I came across with the lack of information about Mathematica performance in different machines, even though there's a benchmark process already implemented, the WolframMark. Data available ...
user avatar
16 votes
0 answers
291 views

GridGraph[{6,6,6}] crashes—can you reproduce this?

Bug introduced in 11.3 and fixed in 12.0 Occasionally, I see a kernel crash with GridGraph[{6,6,6}]. It is not easy to trigger. Sometimes it may require as many ...
user avatar
  • 227k
16 votes
0 answers
458 views

Where are my Cloud Credits going?

In less than a month I've used 5k cloud credits (half of my quota) and all I did was deploying a bunch of static notebooks with ...
user avatar
16 votes
0 answers
197 views

Why are delayed definitions in scoping functions NOT documented?

As outlined here, := may be used in scoping constructs like With to give delayed definitions, but this is undocumented. This ...
user avatar
  • 265k
16 votes
0 answers
608 views

Mathematica HPC on AWS vs. Azure

I am looking for advice on deploying Mathematica for HPC in an on-demand cloud environment. I occasionally have Mathematica projects that require parallel computing and large amounts of RAM. These ...
user avatar
  • 883
16 votes
0 answers
174 views

Issue with undo after copying a string inside a string

Bug introduced in 10.0 and persisting through V11.3 Here's a small but annoying issue related to undo and copying of strings. Steps required to get the problem: Type ...
user avatar
  • 133k
16 votes
0 answers
435 views

Strange behaviour of integrals with Cos, Sin, and Exp

Bug introduced in 8.0.4 or earlier and persisting through 13.0.0 During the study of the problem How to solve this integration? I have discovered a strange behaviour of some integrals. I would ...
user avatar
16 votes
0 answers
2k views

Circle with negative radius?

Bug introduced in 9.0 or earlier and fixed in 11.0.0 Why does this work: Graphics[{Circle[{0, 0}, -Pi/4]}] But this doesn't? ...
user avatar
  • 14.6k
16 votes
0 answers
244 views

Why does the FrontEnd lose matching of parentheses when we insert quotations?

Bug introduced in V10.0 and resolved in V11.3 (These are guesses. It is likely to have been resolved in an earlier version V11.X, but V11.3 is what I have access to.) I am running Mathematica 10.0....
user avatar
  • 21.7k
16 votes
0 answers
244 views

Is Mathematica 10 color managed?

With ColorProfileData Mathematica 10 can handle device-dependent color spaces. However images with embedded color profiles, e.g. ...
user avatar
  • 1,183
16 votes
0 answers
4k views

Threads vs Cores: How many kernels need to launch in parallel Mathematica?

I have a dual-core intel machine. I would like to test how many parallel local kernels should be launch to get the optimized performance. Knowing that the HyperThreading technology of Intel could run ...
user avatar
  • 1,651

15 30 50 per page
1
2 3 4 5
242