1
vote
1answer
6 views

Why doesn't this pattern work? [on hold]

I want the in-built function Count to count the elements in a list which are greater than a value. Example: Count[{1, 1, 2, 3}, (# > 1.5) &] Why doesn't ...
1
vote
3answers
20 views

`Solve` with variables as single vector

Say I have a set of equations where the unknown variables are the elements of a vector $c=(c_1,c_2,\ldots)$ and want to solve it for $c$. Is there a way to do this with ...
-1
votes
0answers
15 views

Compile with modification of arguments' values

Is it possible to compile while changing the value of the arguments? How do I do this? As an example: ...
1
vote
0answers
13 views

Bug(?) in version 10: Tooltip and ListPointPlot3D

The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...
0
votes
0answers
15 views

How to use a C compiler without having SystemModeler

In this question the answer given implies that I must compile a certain function. When I try to compile I get the error A C compiler cannot be found on your system. Please consult the ...
1
vote
1answer
18 views

Find all roots in range

Is there any way to check for all roots in a range? Jens' findAllRoots function is pretty good, but runs at approx. 10% of roots missed when I ran a quick check on ...
3
votes
2answers
62 views

Colorize Grayscale Image

I have a grayscale image that contains two objects. The grayscale pixel values can be divided into three intervals where two of them represent objects and the third represents the background. The ...
1
vote
1answer
5 views

Unprotect fails the first time, works on second pass

I am redefining some of the standard math functions. I know this is dangerous, so I am trying to be extra careful. (For instance, in the redefinitions, I make sure to only match a custom head) The ...
2
votes
1answer
16 views

How can I use multiple Textures in Graphics3D

I am creating a Graphics3D object for a box using 6 Polygons (1 per side). I can use one single Texture on one or more sides but I can not find a way to use different Textures for different sides of ...
1
vote
2answers
14 views

Using conditionals to check if LinearSolve found a solution

Is there some way to check if LinearSolve found a solution using conditionals in Mathematica 9? I need to solve a large number of linear equations, but I am only interested in the cases where there ...
0
votes
0answers
27 views

ListContourPlot in V10

It seems that I obtain different results when using ListContourPlot under V9 and V10. Using this datafile http://www.4shared.com/file/4CWeOCO9ba/cm_online.html ...
0
votes
1answer
27 views

Nothing happens when I click the mouse clicked on my graphics

I wrote codes to record list of coordinates when mouse clicked. It is expected that the coordinates should be plotted dynamically. But actually nothing happened. Can anybody help me to find the ...
0
votes
2answers
37 views

How do I get a Do function to create a list?

I have a Do function which gives me a column of expressions. How can I get the Do function to give me these expressions in a list. i.e The do function gives me this: a b c d I would like it do give ...
0
votes
1answer
47 views

Rotate points by 60° in 2D

I wrote this code, to rotate a list of points 60° about the first point in the list in 2D, but Mathemtica says: "Recursion depth of 1024 exceeded."
2
votes
0answers
33 views

Vertex manipulation/simplification in graph?

Given a Graph such as the one produced with the following code ...
1
vote
2answers
47 views

How to define multiple functions using a for command

Let's say I want to plot 10 graphs of those following functions. Since they are recursive functions, I cant make a table with 10 different initial conditions because Mathematica stores each value ...
2
votes
5answers
118 views

How to join two strings one of which is Subscript?

If I write this one str=Subscript["x","y"]; StringQ[str] False How can I get str as string?
1
vote
0answers
21 views

Plots to check all assumptions of linear regression

I'm running a linear regression with LinearModelFit and would like to plot graphs to check the assumptions of linear regression: linearity, independence of the ...
2
votes
0answers
16 views

How does Mathematica use system environment variables?

Is there a common way in which environment variables are accessed, stored, or used by the kernel? Some standard practice used by WRI programmers? There are built-in functions for querying and setting ...
0
votes
2answers
43 views

Open a .txt file in Mathematica [on hold]

i have a .txt file written for Mathematica, but wenn I open it with Mathematica, there is just an unreadable text and no graphs and simulations like it should actually be, could you tell me how to ...
2
votes
3answers
40 views

Tooltip with ListLinePlot and interpolation

Is it possible to get the coordinates of any point on a graph using Tooltip, ListLinePlot and interpolation ? For example on this simple example ...
3
votes
4answers
308 views

Check if two lists are equal in any order

Suppose I have two lists, how can I efficiently check if the two lists are identical up to permutations of the elements? For example I would like the function to output: ...
1
vote
1answer
31 views

Change Temporary Directory

How to change the value of $TemporaryDirectory ? I need to change it because there is not enough space on the C drive and the calculation seems to stop after a while !
-4
votes
0answers
48 views

Need help with GRE study question [on hold]

I encountered a question while preparing for GRE and am stuck. In an examination paper of 5 Questions, 5 percent of the candidates answered all of them and 5 percent none. Of the rest, 25 percent ...
2
votes
2answers
78 views

Equation of a transformed ellipsoid [on hold]

How do I use RotationTransform to transform the ellipse with respect to the y-axis? The origin of the ellipse has to be at a length of ...
2
votes
2answers
100 views

Matching a case when one element in a pair is Null

I've got a dataset of laitutdes and longitudes. Unfortunately, some of the dataset was from when a time when lat/longs weren't constantly recorded. So I need to remove the invalid data before working ...
0
votes
2answers
59 views

Problem in downloading “ToMatLab” package [duplicate]

Iam trying to download "ToMatLab" Package from http://library.wolfram.com/infocenter/MathSource/577/ but it is showing me an error message by showing a big question mark and "File could not be ...
0
votes
2answers
39 views

Restrict plot of object to be below a given plane in a ContourPlot3D

In a ContourPlot3D, I only want to part of the plot. Such as the part of a cylinder that lies beneath a plane. ...
6
votes
0answers
51 views

ParametricPlot MeshStyle bug in v10?

The documentation gives the following code and says "Use a red mesh in the x direction and a blue mesh in the y direction:" ...
4
votes
1answer
44 views

Problem with Neumann condition in quarter disc

So I'm following the available examples in version 10 for FEM, The plane stress operator is shown as this ...
0
votes
0answers
42 views

Calculating Value-At-Risk (VaR) in Mathematica. A simple code [on hold]

Calculating Value-At-Risk in Mathematica Obtaining data (Microsoft. Daily returns 2014): msftreturn = FinancialData["MSFT", "Return", "2014"][[All, 2]]; Code: ...
0
votes
1answer
61 views

Functions in functions

I have three functions f(x,y) , g(t) , and h(t) and somehow I have to find (d/dt)f(g(t),h(t)) where t = 0. How would I go about writing this in Mathematica? In this equation g(t) is taking place of x ...
2
votes
2answers
107 views

Solving 4 variable system of equations

Trying to solve a systems of equations. Here's the code: ...
2
votes
1answer
48 views

Problem with Style in a Plot

I would like to simply plot a density function $f_1$ and I would like to put a legend but I cannot do it as I wish. The problem is simple but I spent alot of time and couldnt solve it. I will be happy ...
0
votes
1answer
34 views

Automatically to add some points for a plot

Say I want to plot this Plot[x,Sin[x],{x,0,4 Pi}] And I want it to show 4 nicely spaced points, on the line. Is there an automatic way to do this? I was reading ...
1
vote
1answer
41 views

Struggling with FindFit

I'm trying to fit a sinusoidal wave to some numerical data. I can do it by hand using manipulate, so I know roughly the sort of parameter values that I should get back, but functions such as FindFit ...
-1
votes
0answers
38 views

Taylor Polynomials and Approximations in Mathematica [on hold]

I have to solve number 112 parts a, b, and c and number 113 parts a and b using Mathematica. I am very new to Mathematica so any and all help would be greatly appreciated. Click the link below to view ...
2
votes
0answers
21 views

To UpSet or not to UpSet when using MakeBoxes

What is the difference between the following two: ...
2
votes
1answer
32 views

Truncating power series

I have the following typed up so as to truncate higher powers of $\tau$, ...
0
votes
0answers
25 views

Define a Recurrence Table involving other tables

I'm relatively new to using Mathematica. Previously I used Matlab, but lately I noticed that the numbers i got in both of them do not match (mostly it seems that Matlab lacks precision...). The ...
0
votes
0answers
42 views

Turning a 2D 3 body problem into 3D not so easy?

I have programmed a 3 body problem, that can in theory work for more than 3 bodies. I apologize in advance for the length of the code that I posted, I don't really know how much one would need to ...
5
votes
2answers
88 views

ListPlot inserts extra PlotMarkers and Mesh at crossing points

In the example below, ListPlot with PlotMarkers -> Automatic and a variant using ...
1
vote
2answers
36 views

How to fix the order in which text appears in an axis label (V7) [duplicate]

One of the AxesLabel is "$:\text{log}|\Phi8b(u)|\color{Red}{\text{Red}}$". Question: How to make it like: "$\color{Red}{\text{Red}}:\text{log}|\Phi8b(u)|$"?. My Mathematica commads: ...
7
votes
0answers
58 views

Is there a way to stop Export if the file size is too big?

I've got code that's exporting a file, but the file might be so big that it will take up too much space on the cluster I'm using and crash other users' processes. Is there anything like ...
2
votes
1answer
46 views

Identically styled cells from ToBoxes and Cell do not align

I'm trying to generate some worksheets using NotebookWrite so that I can control the page breaks, but have got stuck on the alignment as there appears to be a ...
7
votes
1answer
210 views

How do I generate cross sections of a 3D graphic?

I would like to approximate the volume of a bottle by summing up the volume of the individual disks. I have obtained code references from a demonstration. But how do I generate the cross sections? The ...
2
votes
1answer
76 views

Mean curvature of Sphere

I am trying to calculate mean curvature of a parametric surface(like sphere), and I wrote this code based on this discussion. Here is my code: ...
3
votes
2answers
175 views

Plane Geometry Diagrams With Labels

I can make some basic diagrams in Mathematica (stolen from their pages, for example see the below: LaminaData["FilledIsoscelesTriangle", "Diagram"] However, I'm ...
1
vote
1answer
49 views

How to calculate minimum positive solution of a equation?

Equations with triangular function usually have multiple solutions, like Solve[Sin[x] == 1/10, x] returns a solution like ...

15 30 50 per page