0
votes
0answers
11 views

Accuracy and WorkingPrecision

Observe that ...
0
votes
2answers
9 views

Trouble using Manipulate and NDsolve for coupled ODE's

I'm aware that there are a few threads on the topic of solving coupled ODEs using NSolve and Manipulate. Based on those, I wrote the following code, solving my system of equations: ...
4
votes
2answers
46 views

Floating Points; Division vs Multiplication and Accuracy

You have 2 functions: f[x_] := x ((x + 1)^(1/2) - x^(1/2)) g[x_] := x/((x + 1)^(1/2) + x^(1/2)) Which one is more accurate? Side note: If you could explain why, ...
0
votes
0answers
8 views

ReadLine[file] after reopening a closed stream doesn't read at the beginning of file?

Take a text file from your system: file = OpenRead["path/to/your/file"] ReadLine[file] Close[file] Here ReadLine[file] ...
3
votes
2answers
34 views

Manipulate: How to create custom reset Button automatically?

I have a complex Manipulate with more than 10 controls. Each one has its own default value. I'd like to add a custom button in the control area to reset all ...
1
vote
0answers
10 views

How to change the default printing options using commmand?

I am looking for something like this: SetOptions[EvaluationNotebook[], "PaperSize" -> "A3"] The options are listed, but where do I find the arguments? Say ...
1
vote
2answers
24 views

Evaluate list of functions at a certain point

I have a list of functions (actually they are derivatives) of the type: {D[g[x,y],x],D[g[x,y],y]} I would like to evaluate all of these functions at a point, ...
0
votes
0answers
8 views

Error: The stream InputStream[…] has been opened with BinaryFormat -> False and cannot be used with binary data

Take a text file in your system, and execute file = OpenRead["path/to/your/file"] Then read a line from this file: ...
0
votes
0answers
11 views

Problem when importing EPS files created with Mathematica into TeX

I create a figure in EPS format with Mathematica. The graph of some function. Then I add some items to the figure (bullets, points, shaded lines, some math text). I save this in EPS format and ...
0
votes
0answers
12 views
1
vote
0answers
21 views

Adding Assumptions changes the result of Integrate

When I try to calculate the following integral: ...
0
votes
2answers
38 views

Very slow solve and problem when solving in a nested for loop

I am using a nested for loop to solve a system of equation for {a, ga} for 2 varying parameters: here it's rm and sig. ...
0
votes
0answers
14 views

AspectRatio on ListLinePlot only considering ticks and not values

I want to plot some data in a ListLinePlot where the x- and y-values differ by at least 2 orders of magnitude. In this plot the x- and y- axis should not be scaled differently. This is the result that ...
0
votes
0answers
21 views

Solve and NSolve Parsing Error

I've been using Mathematica to do simple line intersection solutions, particularly using NSolve. However, I've been running into the following bug recently. When trying to solve for the following: ...
1
vote
1answer
46 views

DeleteMissing issues

Has anyone had problems with the DeleteMissing function in Mathematica 10.0.2? I find that it rarely works. Most of the time it returns a list which still contains ...
0
votes
0answers
18 views

Subscript und Superscript in FrameLabel and Export

I'm creating plots that I want to export as png. Which works, but when I add sub- or superscript into the FrameLables or get 10^x in LogPlots the sub- or superscript letters in the exported png will ...
0
votes
1answer
32 views

How to prevent factorial from being evalauted?

Suppose I have: Do[Print[i/i!], {i, 1, 10}] I would like the output to be like: 1/1!, 2/2!, 3/3! , ...,10/10! However, when I use the code above the ...
3
votes
4answers
64 views
-4
votes
0answers
38 views

How to write the following subroutine in Mathematica and then how to call it? [on hold]

This is the routine wriiten in fortran i want to apply in mathematica as a subroutine and then want to call it where needed. I tried this one ...
0
votes
0answers
31 views

Plotting RandomVariates [on hold]

I have simulated 10000 random variates from a copula distribution. I would like to plot them on a graph. How would I do this for a) If the random vector is 2 dimensional (so one on x-axis and one on ...
1
vote
1answer
19 views

BarChart with relative abundances as chart labels

I want to make the following bar chart, but with relative abundances on top of the chart labels. I get the absolute numbers, but not the relative abundances: ...
8
votes
1answer
210 views

I define a variable as local to a module BUT then the module uses its global value! Why?

I have a question about modules and local variables. Here's my example: h = 5; Module[{a, h}, a[h_]= h^2; a[4]] (*Out[2] = 25*) I expected the module to ...
2
votes
2answers
39 views

List of parameters to manipulate from an external list

I am trying to achieve the functionality of the following command: Manipulate[ z, {z, 0, 1}] but with passing the list of parameters into ...
0
votes
0answers
33 views

3D plot of concave data set

I have the following data set ...
0
votes
0answers
41 views

What's the name of the default font used in Mathematica 10?

I really like the default font in Mathematica 10. So I would like to use it for my other applications. I tried to search for the name of the font, only found that a lot of people is talking on how to ...
1
vote
2answers
41 views

Ctrl-V doesn't paste, it opens Find and Replace dialog instead

I just installed Mathematica 10 on Windows 7 today. Everything works fine, except the shortcut Ctrl-V doesn't paste, it opens the "Find and Replace" dialog. I tried ...
6
votes
1answer
61 views

Assigning new value in association

I experienced a problem in changing values in an association and broke down the problem to the following: Given a list of association (here with one element): ...
0
votes
2answers
29 views

NIntegrate and Integrate of a Spherical Bessel function

I am trying to integrate over a spherical bessel function. I have used both the Integrate and NIntegrate functions in Mathematica but the values given by each do not match. Any reason why this ...
0
votes
1answer
41 views

Showing Legend in Wolfram Mathematica

The code below displays a histogram of the data and superimposes plots of five Weibull distributions for comparison. I have assigned colors to each Weibull curve in the distribution plots. How can I ...
14
votes
1answer
290 views

Confused about how Partition works

I have a problem about the padding list about Partition command. For instance, ...
0
votes
1answer
28 views

Show function doesn't plot two graphics [duplicate]

I've got a following code snippet: ...
1
vote
1answer
31 views

Piecewise function and integral function

Given a piecewise function f[t_]:=Piecewise[{{Exp[-1/t^2],t>0},{0,x<=0}}], I can define another function like this: ...
1
vote
2answers
60 views

How do I remove the quotation marks from each element of a list containing dates that I have import from excel?

I've been stuck in this problem for 1 week. I just want to make a graph (Log-Return vs time (in year, month, day)). The code is: ...
0
votes
0answers
34 views

Copula—Correlation Matrix [on hold]

I need some help with copula. I am using the copula with either the multinormal or the Student t kernel. I thought before that when I input in my correlation matrix, if I simulate enough random ...
4
votes
2answers
74 views
4
votes
3answers
106 views

Does RegularExpression support “(?R)”?

Mathematica's RegularExpression is based on Perl's PCRE library, which supports recursive regular expressions using (?R) (or, ...
6
votes
2answers
67 views

Limit characters/digits entered into InputField

When using InputField, whether setting the input type as a Number or String, is there a way ...
-1
votes
0answers
27 views

Can a polynomial have -1 as a power? [on hold]

Based on the definition of a polynomial. Can a polynomial for example be something like this and have a negative one as one of its powers? 3x + 3 + 3x^(-1)
0
votes
3answers
41 views

Assigning a value to specific product [on hold]

I was wondering if there is a way to assign a value to a specific problem. For example if I wanted $a\cdot a$ to equal $-1$. How would I go about doing that?
1
vote
1answer
73 views

How to prevent tiny complex errors in Integrate?

Integrate is adding a tiny imaginary error to an easy result. Why? And how can I stop it? ...
3
votes
2answers
35 views

FunctionInterpolation with vector output and scalar input

Apparently it is possible to build and InterpolatingFunction that accepts a vector input and returns a vector output: ...
0
votes
0answers
30 views

Print result inside the Do [on hold]

How can I print each root for each iteration Do without waiting the end of the cycle? ...
0
votes
1answer
47 views

What to use instead of ReplaceAll to replace a parameter with a number before the evaluation of an integral?

This is probably very simple but I don't see the solution now. Let us say I have a variable e defined as e=n ReplaceAll can subsitute n with value 3 using ...
0
votes
3answers
56 views

Is there a global setting for number form

Im creating strings which represent equations in C to use with library link. The problem i have is that numbers in scientific form, when converted to strings, are no longer useful. e.g. ...
0
votes
0answers
29 views

Unable to start the front-end

I just updated to Mathematica 10.0.2, and was hoping that it would fix a problem that I had been having where I go to run Mathematica and nothing comes up. If I open task manager, I can see that ...
0
votes
0answers
24 views

ColorFunction in GeoRegionValuePlot

I don't understand ColorFunctions so any general pointers will be greatly appreciated. My specific question is the following. I want to animate a GeoRegionValuePlot. In the toy case below I have two ...
1
vote
1answer
46 views

How can you set the scale ticks in a Gauge?

I can't seem to access a FrameTicks type option for setting the values of frame ticks on the axes of a Gauge. Below is an ...
4
votes
1answer
39 views

SparseArray output triggers “unsafe dynamic content” warning

The first basic example in the documentation of SparseArray: ...
0
votes
0answers
38 views

Nash equilibrium in game theory?

Are there examples of the solution of Nash non-cooperative games with mixed or pure strategies? How could be implemented in Mathematica 10?
0
votes
0answers
33 views

Plotting a function with multiple colors, without modifying ColorFunction

I have a function $f$ and a set $U$, and I would like to plot $f$ with a different color on and off $U$. At the moment, I am using a ColorFunction with an "if" ...

15 30 50 per page