0
votes
2answers
30 views

scatter plot from two lists with barlegend

Lets say I have two lists listx = {}; Do[x = RandomReal[{0, 1}]; AppendTo[listx, x], {1000}]; listy = {}; Do[y = RandomReal[{0, 10}]; AppendTo[listy, y], {1000}]; ...
2
votes
1answer
482 views

Use Euler method to solve differential equation

Use Euler's Method or the Modified Euler's to solve the differential equation ${dy/dt=y^2+t^2-1, y(-2)=-2}$ on $[- 2, 2]$. Take h = 0.2 (...
5
votes
3answers
63 views

MovingAverage to include the average of the first and last elements in a list

Is there any way to take the average of pairwise elements in a list? Example: Given the list list = {a,b,c} I'd like to generate the list ...
0
votes
0answers
4 views

Switching to CloudObject`Private`

I shut Mathematica done, then restart it. The image shows all that I do. I have done nothing else. Can anyone explain what is happening to me? The complete code is: ...
2
votes
2answers
431 views

Plotting several numerical solutions plus the analytic solution of ODE in one plot

I want to be able to plot several numerical solutions of an ODE, plus its analytical solution in one plot, in order to see how the numerical solutions converge towards the analytical one with respect ...
1
vote
1answer
852 views

Euler's method for system of differential equation

I need to program Euler's method to solve a system of two diffferential equations of first order. Fist, I have programmed the Euler's method for just one differential equation: ...
0
votes
1answer
39 views

Solve seems broken after I installed the package Tomatlab.m

After I downloaded the Mathematica package ToMatlab.m, Solve does not work as before: ...
5
votes
1answer
620 views

NestList and Euler's method

I am new to mathematica and so just experimenting with various programming constructs. Recently have been looking at NestList and how I could use this to implement ...
3
votes
2answers
54 views

Identifying locations of entries in an array

If I’ve got a big array displayed in Mathematica, is there a way for me to select a particular location on the screen and have Mathematica tell me “You’ve selected the entry in row 137 and column 92” ...
0
votes
0answers
38 views

How to change dimensions of a matrix?

I have two sets of data that I'm working with, both of which should be 1024 x 1024 matrices (they're from the same instrument). However, when I go to manipulate them, the dimensions of one are read as ...
1
vote
2answers
148 views

Complex numbers from two arrays with Real and Imaginary parts

I have two arrays, containing the real and imaginary parts of a list of complex numbers. Re = {{Re_number1},{Re_number2},...} Im = {Im_number1},{Im_number2},...} ...
3
votes
1answer
90 views

Precision of NIntegrate

At the moment I am considering a "difficult", highly-oscillatory integral in Mathematica. It calculates the integral without any complaints. However, I am also trying out a numerical method with which ...
0
votes
1answer
185 views

How to export figures with normal spacing in texts?

My OS is Ubuntu 14.04, and I use MMA 10. I export a figure ploted in MMA to a pdf file and then import the pdf in Latex, here is the sreenshot As you can see, the spacing in the text is odd. But ...
1
vote
2answers
47 views

Extracting subtree for a TreeForm

How can I extract an entire subtree from a TreeForm starting from a specific point of the tree? Because with Extract or Part you can take only that specific point...
3
votes
3answers
105 views

How to assign symbols to functions

Several functions work with symbols in MMA: Take for example Part: l1=l2=Range[4]; l1[[3]] (*3*) l2[[4]] (*4*) I want to make ...
0
votes
1answer
31 views

Encountered non-numerical value for a derivative at x==0 [on hold]

this may be a duplicate question but I still don't understand how to get around this problem after reading through other posts. I'm trying to solve a differential equation ...
-3
votes
0answers
57 views

A polyhedron convex test

I want to write a test function to see if this polyhedron is convex or not: ...
2
votes
2answers
49 views

How to evaluate an expression over a particular list of tuples?

NOTE: This question is very similar to this one but I realized reading at the answers that I made a mistake in the equation AND I was not clear enough about what I need (my apologies): I want to ...
1
vote
2answers
75 views

Plot3D and NIntegrate issues

f[x_, y_] := 2*x - y Plot3D[f[x, y], {x, -1*Sqrt[4 - y^2], Sqrt[4 - y^2]}, {y, -2, 2}] NIntegrate[f[x, y], {x, -1*Sqrt[4 - y^2], Sqrt[4 - y^2]}, {y, -2, 2}] I ...
0
votes
0answers
36 views

Asymptotic forms of Bessel function [on hold]

I want to replace Bessel functions by asymptotic forms, so the question is: can I find the best ones with help of Mathematica? And if it's possible, how can I do it? Update How can I get with ...
6
votes
3answers
140 views

Speed up derivative evaluation

I'm trying to calculate the normal vectors and the tangent vectors at the discrete points of a suface. For example: ...
1
vote
1answer
37 views

How to change the direction of increasing x in a plot [duplicate]

Consider the data set data = Table[{10^-k, 10^(-2 k)}, {k, 5}] and the plot: ListLogLogPlot[data] My goal is to reverse ...
1
vote
1answer
49 views

Transform linear system into a matrix form

I have a system of linear equations in variables $A_n$ of form: $$ \sum _{k=-K}^K h_k A_{n-k} J_{n-k}\left(\frac{(1-i) \text{$\eta $Sqrt}(n-k)}{\sqrt{2}}\right)+A_n\left(\frac{(1-i) \eta ...
0
votes
0answers
36 views

Want to display a animation necklace when updating a list of suggestions from an inputfield search

I have an InputField search that provides search suggestions, but I want an animation necklace to be displayed while the search is 'busy'. I would also like this to be done using Dynamic rather than ...
0
votes
1answer
33 views

Variable ViewPoint coordinates

Can I use the option ViewPoint on Graphics3D[], with its setting a variable function? For example: ...
9
votes
3answers
442 views

How to use Locators on a graphic in a tabview

Background: I want to split graphics in a Manipulate in several parts in a tabview control. But the tabview somehow interferes with the locators as in the following simplified example: ...
0
votes
3answers
234 views

Mapping Contour Plot onto ListPlot3D (or by using color variations)

I am trying to overlay a contour plot I have created on a ListPlot3D graph. I have seen a few questions answered on this website that answer my basic question. ...
1
vote
2answers
56 views

List Operations: how to combine two lists (pattern given)

Two lists (matrixes) are given: a = {{x1, y1}, {x2, y2}, {x3, y3}}; b = {{u1, v1}, {u2, v2}, {u3, v3}}; Expected return: ...
0
votes
2answers
177 views

Performance Issue When Using Manipulate

Any help would be appreciated! I've been attempting to manipulate the graphics for time t. We need to have Di set to 11.2, however when it is set to any value greater than .1, we see a great deal of ...
2
votes
2answers
70 views

how to cancel arbitrary term in fractional formula

I often encounter this kind of problem that I want the fractional formula to be looked like the way I want it to be. For example, this one $$\frac{R^2 \left(g m_1-g m_2\right)}{J+m_1 R^2+m_2 R^2}$$ ...
1
vote
0answers
29 views

How can I calculate Lagrange multiplier and the critical points with Mathematica? [on hold]

I have constraints and a function I want to know the critic points but is there a way that I can compute this method so that I can see results faster
5
votes
1answer
147 views

Does Mathematica take advantage of hyper-threading (if it is available)?

I do not know much about computer architecture, but some Intel processors have hyper-threading technology, which can apparently improve parallelization for applications that take advantage of it. In ...
4
votes
1answer
41 views

Graph: Coloring Edges individually

CODE: Graph[{Style[0 -> 1, Red], Style[0 -> 1, {Blue, Dashed}]}] This mathematica code will make both lines solid Red, since they belong to the same two ...
17
votes
3answers
2k views

Mathematica color schemes for the colorblind

Does Mathematica have a graphics option that makes plots intelligible for people with colorblindness?
0
votes
1answer
61 views

Limit of a fractional integral

I am trying to find the limit for λ -> 0 of the integral listed below, but Mathematica give me only a ConditionalExpression ...
4
votes
1answer
95 views

Are there more pre-existing ColorFunction options?

Such as "DarkRainbow", "Rainbow", "BlueGreenYellow", and ...
2
votes
2answers
55 views

Export Text with Colors

Is there a way of using Export[] method to take a text with colors (using Style) and then export to file, such that when I open ...
2
votes
1answer
72 views

How to obtain a complete list of WordData's “Properties”?

Command WordData["Word", "Properties"] seems to return an endless list of properties, such as: "Definitions", ...
14
votes
3answers
1k views

On coloring the faces of a surface differently with parameter-dependent colors

Old versions of Mathematica ($VersionNumber < 6) supported a particular syntax of ParametricPlot3D[] that allowed for ...
12
votes
3answers
878 views

Parametric Interpolation of 2D data

I want to create an interpolation through the following 2dim data points: ...
0
votes
2answers
35 views

Selecting the maximum value from the results returned by NSolve

I'm trying to select the maximum value from the answers Mathematica 7.0 is getting from a simple basic NSolve algebric equation : ...
17
votes
0answers
126 views

Hyperlinks not preserved when saving in PDF format in MMA V10

I usually create my course contracts in Mathematica and then save them in PDF format. The notebooks include hyperlinks and these have transferred to PDF without problem over the last several versions ...
1
vote
3answers
151 views

Listing elements starting from 0

The first element in a list v in mathematica is denoted by v[[1]] and subsequent ones are then ...
-8
votes
0answers
43 views

I need generalized code for genetic algorithm(an optimization technique)? [closed]

I'm working on GA coding to optimize the locators position in fixturing system to minimize the error in precision manufacturing.Basically my work is the extension of article "An analytical model for ...
0
votes
1answer
99 views

ParallelTable and global variables

I want to calculate the convolution of two function. In order to generate variables automatically, I use such an expressions: ...
4
votes
0answers
34 views

Using a Mathematica index as a DiscreteVariable in NDSolve when solving a coupled set of ordinary differential equations

Context Since the explanation below of the problem to be solved is lengthy, let me preamble this by saying that I have code that works to solve the problem, but I don't know whether (1) it's ...
0
votes
0answers
17 views

Maximizing Autoencoder Hidden Unit Function [migrated]

Given \begin{align} a = f\left(\sum_{j=1}^{100} W_j x_j \right). \end{align} where $f$ is the sigmoid function, $W$ and $x$ are $100 \times 1$ matrices with the constrain \begin{align} ||x||^2 = ...
0
votes
1answer
77 views

A question about calculus and Programming

I am a very new user and I would like to know how to calculate the following operations in Mathematica. Honestly this is not a homework. I am an french architect and I would like to be back in Math ...

15 30 50 per page