All Questions

107 views

How can I temporarily suspend the Combinatorica package?

Sometimes after I load the Combinatorica package by entering Needs["Combinatorica`"], I need to use Mathematica for something like: ...
29 views

When I upload a Mathematica notebook to my website, when I click on the link, it opens, but as text, not a Mathematica notebook. At some sites, when I click on a Mathematica notebook, the notebook ...
101 views

How can I make angle brackets function like lists?

Is there a way to make <a,b,c> behave like {a,b,c}, but remain displayed as ...
52 views

Replace symbol with numerical value

How do I get the same result, i.e., how can I get Mathematica to replace a with 1? ...
71 views

User defined packages don't load with $\mathtt{Needs}$ or $\mathtt{Get}$

As an introduction to packages in Mathematica I'm following this short guide by Leonid Shifrin, and tried using the sample package provided in that answer. However, both ...
92 views

How to solve coupled complex-valued equations faster and get simplified solution

I have six coupled equations. How to solve these equations symbolically faster in Mathematica. In these equations, variables p,q,x,y are ...
29 views

How to plot market share data in standard form [duplicate]

I am trying to accomolish exactly this (not related to market but with exactly same representation): Is there any special function in mathematica to do these types of plots? Or how would you ...
114 views

Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
43 views

INTERNAL SELF-TEST ERROR: winFonts|c|265 [closed]

INTERNAL SELF-TEST ERROR: winFonts|c|265 I don't know what happen,even the mathematica cann't calculate. and it show symble in a unnormoal,and it makes me crazy. I need help!!! I need help!!
65 views

Using parenthesized Regex backreferences in StringReplace

(I am sorry for my poor English,I'll try to use a simple sentence to convey me.) I can use StringCases to get the target to change like this ...
165 views

Problem With Mesh on 2D Plot

How to make the mesh color on 2D plot automatically same with the plot color? The code below doesn't work and produces "Automatic is not a graphics directive" error message. ...
44 views

How to customize an animation [duplicate]

I want to create an animation regarding the restricted three-body problem for the Earth-Moon system. The code is as follows ...
41 views

How can I wrap a C++ object in WSTP?

I am trying to wrap a sophisticated C/C++ API in Mathematica using WSTP, but can't work out how to return a pointer to a C/C++ data structure. This object was created on the C/C++ side of the wrapper, ...
81 views

Problem exporting and re-importing STL file

I wrote all code and there're no errors in code. Result of code is like first picture(left). But I can't Import that structure. The result of import stl file is second one(right one). How can I import ...
113 views

Problem with NDSolve and If

If T=T1, program can calculate. But, when T = T1*If[Abs[q2[t] - q2d] < e1 && Abs[q2'[t]] < e1, 0, 1], program can ...
44 views

Labelling Vertices of a GraphicsComplex

I cannot figure out how to label the vertices of a GraphicsComplex, for example ...
95 views

slwcon and eincr in integrating multivariate Gaussian random variables

Why is the following integration involving multivariate Gaussian distribution so slow and generating an error? Is there a better integration strategy? All that I'm doing is considering ...
47 views

Create set of data from vector curve [closed]

I need exactly what is written in the title. Suppose we have some curve plotted: p = Plot[Sin[x],{x,0,2pi}] now we save that as vector graphics: ...
106 views

When are sparse arrays effective?

Sparse arrays are not effective in Mathematica 10. More computational time is needed to perform arithmetic operations on sparse arrays. Their size is also bigger than normal arrays. Here is a simple ...
118 views

Image analysis: Gravel Sieve

In this link: http://broadwaysand.com/?page_id=165, you can find different gravel pictures. A quarter dollar coin gives the scale, because its diameter is 0.955 inches (24.26 mm) I want to get the ...
97 views

Three dimensional plot with CountryData

I wish to visualize a 3D layout of country data using the following code. How can the output be improved as currently it looks smeared to one side. ...
241 views

How to stop a summation when a variable is small enough?

I meet with a problem. I hope to get an infinite summation of $f1(x)/f2(x)$ which converges to zero. So my code is Sum[f1[x]/f2[x],{x,Infinity}] or ...
91 views

How to write crash-robust code?

When a notebook crashes all the work I was doing is lost - I'd like to ameliorate this situation! Is there a way to decorate a symbol so that it is saved to disk whenever it changes, or after a ...
81 views
+50

How to keep Mouseover visible while control has focus/cursor?

I have a DateObject and InputField that I am using to collect an inputted date. Mouseover ...
72 views

How I can write to change a lot of variants and store my values from loop

If my function is ...
83 views

Datatypes and numbers in Mathematica

I have some questions about numbers in Mathematica: Does Mathematica work with datatypes like int, long, ...
61 views

Constructing a grid of individual plots for data imported from a list of files [on hold]

I have to plot 6 data plots (ListPlot) in a GraphicsGrid from 6 different files (each data file has four columns of which the ...
67 views

How to assume that a list of variables is real in a nice and clean way

You can use the function Element to say e.g. $x,y,z\in\mathbb{R}$ via Element[x|y|z,Reals]. Now if I have a list of elements ...
84 views

Creating a tube with custom caps

I need a tube with only one end capped. I can do this relatively easily with: ...
79 views

how can I plot the Normalized histogram [on hold]

I have a table of r and w. I want to chose a random w in the interval [0-1.6] and with interpolation find r relative to this w. For 1000 {W[r],r} I should plot the Histogram with Normalized factor ...
25 views

“Extract” certain elements of a list of “rules”? [duplicate]

I have the following list: {u1[0] -> 3773.62, u2[0] -> 3773.62, u3[0] -> 48.7871} I need to extract the elements on the right hand side of each rule ...
58 views

DSolve Error 3D Navier Stokes (z,r,t)

I am essentially wanting to solve Navier Stokes in the [z,r,t] dimensions (2D+Unsteady Flow) for pressure driven flow. However, I keep getting an error I am unable to resolve in my Dsolve such as: ...
155 views

How can I draw this polyhedron?

I'm high school student, and I am doing research about buildings using Mathematica. I want to plot the polyhedron shown below: I have tried using Table, but it ...
57 views

How to accelerate Simplify and Series? [closed]

A recent project of mine requires a lot of symbolic calculations in Mathematica and is very time consuming. By experiments I have found that the most time consuming parts are: ...
53 views

Jagged appearance of lines in 3D plot

I wanted to know if there's a simple way to plot some field lines of a 3D vector field, something like an extension of StreamPlot. I've searched for a while, but ...
62 views

Table generation with SetDelayed function [on hold]

I would like to understand why the following two outputs differ: Let us define the following data set: ...
41 views

How to auto-run user-interface in Player Pro

I am about to start constructing a UI that will be run with Player Pro. I have created the following notebook and marked it cells as initialization cells. ...
139 views

Trying to solve a system of equation

I am trying to solve 3 equations 3 unknown system on Mathematica in order to get numerical results for my three variables x,y,z but the software is always on the ...
34 views

Using precision in Mathematica code [duplicate]

I would like to use a specific precision for several different calculations in Mathematica code. I know that using SetPrecision can give you the required precision ...
31 views

Linear Programming Using Dual Simplex method

I want to solve an optimization problem using the Dual Simplex Method. Although Mathematica gives the result directly when I use the command Minimize but I want to ...
35 views

Solving a Nonlinear Optimization using Primal-Dual Interior point method [on hold]

I want to solve an optimization problem using the Primal-Dual Interior Point Method. Although Mathematica gives the result directly when I use the command ...
19 views

Creating points that are remoted from one another beyond a certain threshold. Quasirandom sequance? [duplicate]

I am looking for an approach to create a set of pseudorandom pairs of numbers subjected to one condition. They must be not closer to one another than a certain limiting parameter. One approach might ...
91 views

Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?

There's an example of LinkObject-based passing in the LibraryLink documentation. Unfortunately the cell in the documentation notebook is corrupted, but to skip ...
79 views

Singular integral mathematica

A = Integrate[Sin[2 x] / (A1 - B1 Sin[2 x] + C1 Cos[x] - D1 Sin[x]), {x, 0, 2 Pi}] The calculation is taking too much time; not returning any results. Any help?
103 views

How can I fix a defect in the 3D graphics rendering of a coiled tube? [closed]

I use the following code to obtain a tube version of a spring: ...
46 views

The sum Rule, getting mathematica to help me understand how it is derived [closed]

Using Mathematica to solve equations: So I have been struggling for a while with regards to how an equation is derived. I have posted the question several places, but I want to figure it out myself ...
231 views

Simulating an optimization problem

I have an optimization problem like below: $\text{minimize } - \sum_k w_k \log r_k$ $a \leq r_k \leq b_k, k = 1, \cdots, 10$ Here, $w$ and $b$ is a set of constant: $w = [w_1, \cdots, w_{10}]$ ...
45 views

Display a triangle that rotates at certain rate when space bar is held down?

This question is a follow up on: Open a pop up window that runs a calculation in loop until it is closed? How can I open a pop up to show a picture of a triangle that rotates by ...