0
votes
1answer
140 views

Import and export without changing number format

I have a complex file that is the output of a program. The file contains multiple columns with data in different number formats. For example: ...
0
votes
1answer
276 views

What is the “proper” way of multiplying a list of vectors by a matrix? Why Map does not work? [closed]

I am an absolute newbie with Mathematica, so please forgive me if this is stupid, but for the life of me I can't solve this. Suppose I have a list of vectors $b_{1...n}$ and a square matrix $A$ and I ...
5
votes
2answers
217 views

How to make a world map with a coloured ocean and transparent land surface?

I'd like to make a world map with a blue coloured ocean and transparent land surface (to be used later as an overlay). With: ...
0
votes
1answer
70 views

How do I apply a conditional append rule to plot randomly chosen points?

I'm working on an attempt at forming a sort of "Mandelbrot" set using Newton's method and randomly chosen points. Effectively I need to define a loop for Newton's method to determine whether my points ...
8
votes
2answers
335 views

Matching pair of numbers {a,-a}, where a is numeric

Imagine you have a list of pairs of numbers, such as {{2,-2}, {1,5}, {1,-3},{-3,3}} The task is to reduce the given list to a list of pairs of type ...
6
votes
1answer
114 views

Error when combining Except, “*” and an additional character

Bug introduced in 5 or earlier and persists through 10.4.1 Anyone knows why ...
0
votes
1answer
194 views

NDSolve::bcedge: Boundary condition not specified on a single edge

NDSolve::bcedge: Boundary condition c[t,5]==Cout is not specified on a single edge of the boundary of the computational domain. >> I'd like to plot $\frac{\partial}{\partial t}c=\frac{d}{r^2}\frac{\...
2
votes
2answers
280 views

random discrete data 3D plot

I get the random discrete data as follows ...
0
votes
2answers
83 views

Writing a function with variable arguments [duplicate]

I want to write a function which takes multiple arguments varying from 1 to n, where each argument is a triplet. sublistProduct[{$a_1,b_1,c_1$},{$a_2,b_2,c_2$},...] = { $\Pi_{i=1}^{i=n}a_i ,\Pi_{i=1}...
0
votes
1answer
128 views

Generate the conference badge

I have a list of about 50 conference attendees with 3 columns (First name, Last name, University). I would like to use Mathematica to generate the conference badge for each people. The badge dimension ...
0
votes
0answers
45 views

Using list of values as argument in a function [duplicate]

could you please help me with a task. I would like to define a function with a list of values as an argument. There is a working code with a values {1,1,1}: ...
3
votes
2answers
66 views

Simplify with assumption of unknown function [duplicate]

I have an unknown multivariate function entry[x,y,z], which is positive. Then how to get FALSE and entry[1,2,3] in the following evaluations? ...
5
votes
4answers
724 views

A too complicated lookup

I have the following keys: nm = {"bay", "ica", "rat", "tat", "dax", "dow", "sp5", "nas", "mean", "total"}; which I want to use to find a corresponding entry in ...
1
vote
2answers
187 views

Find the point of intersection of a plane

I would like to determine the point of intersection of a line which crosses a plane. If I were to do it by hand, I would proceed as follows: Find the parametric representation for line $r(t) = (x_0,...
1
vote
2answers
124 views

How to make function accept list of rules as an argument?

Considering the list of rules: r= {"a" -> "1", "b" -> "2", "c" -> 3, d -> 231, "e" -> 1.25}; I want to have a function ...
3
votes
1answer
187 views

Right-aligning variable-length rotated tick labels

I have a list of data where each point should have a label. I would like the labels to be below the plot, where tick labels usually are. This is what I have so far: ...
2
votes
3answers
149 views

DeleteDuplicates in a list of 2-tuples under condition

Having a list of 2-tuples, I would like to delete such 2-tuples that have 0 at second position, but only those, whose first element is not unique in the list. E.g. ...
1
vote
3answers
210 views

How to manage list of list of rules?

Considering we have a list: str = "{1 -> {a -> aa, b -> bb}, 2 -> {2a -> \"{b -> bb}\"}}" Bringing this to expression gives: ...
0
votes
0answers
46 views

Calculus with Mathematica, books, interesting examples [duplicate]

I'm looking for a book where I could find informations and interesting examples regarding examine functions of one variable like continuity of functions, limits, differentiability in Mathematica. I'd ...
0
votes
1answer
96 views

Dashed 3D plot: dashes run together

When I use the Dashed option in my 3D parametric plot, the dashing looks very muddy and the dashes are running together. For example, I plot the below code, right ...
4
votes
1answer
146 views

Mathematica does not help in this integral

I am trying to solve this integral with assumptions: ...
8
votes
2answers
251 views

How to define the Bernstein function like the built-in BernsteinBasis?

We know the Bernstein function defined as below: $$B_{n,i}(u)=\binom n i u^i(1-u)^{n-i}$$ And we define $B_{n,i}(u)=0$ when $i<0 $ or $i>n$ In addition, the first derivative of $B_{n,i}(u)$ ...
1
vote
1answer
63 views

Symmetric group action on polynomials

I am working with polynomials in several variables with the obvious action of $S_n$. That is, given a polynomial $f$ in the variables $x_1, \dots, x_n$, a permutation $\sigma \in S_n$ acts on $f$ by ...
3
votes
2answers
135 views

Plotting solutions of systems in complex plane

I'm interested in plotting solutions of systems of polynomials in the complex plane, in the following way. Let $f_1,\ldots f_s$ be complex polynomials in variables $x_1,\ldots x_n$. I know how to ...
8
votes
1answer
352 views

How can I improve my prediction for the end time of the Reddit button game?

There is an April Fools game on Reddit where users with accounts can press a button (once) to reset a 60 second countdown timer: https://www.reddit.com/r/thebutton http://www.redditblog.com/2015/04/...
0
votes
1answer
43 views

Precision digits in Log[] [duplicate]

Why does N[Log[10, 6613], 20] give the requested 20 digits of precision (* $3.8203985227039816648$ *) but ...
0
votes
0answers
48 views

How to make Piecewise continuous [duplicate]

I have a function defined by its slope in a continuous sequence of intervals, e.g. ...
6
votes
1answer
340 views

How to send OUT output to stdout when running a script from command line on widows?

I am learning how to run a Mathematica m file from command line. I am on windows. My question is: How to make the output display on the screen (the DOS windows) as the script is running? Currently, ...
5
votes
2answers
339 views

Package Loading: How to get rid of Needs::nocont?

I am trying to create a documentated application inside FileNameJoin[{$UserBaseDirectory, "Applications"}] I obviously dont fully understand the concept of the ...
3
votes
0answers
111 views

Automatic AutoIndent while editing a Package (.wl)

The author of this question is interested to personally handle the code indentation and have the package editor, built-in in Mathematica 2012, preserve the manually chosen indentation level from line ...
2
votes
4answers
269 views

Using ArcLength in Mathematica 10 using absolute values

With Mathematica 10, I can nicely plot: y = x^2 - 4 Abs[x] - x But I have not been able to use ArcLength to get the length of ...
4
votes
0answers
69 views

Variable not assigned to correct Context [duplicate]

I am trying to understand Mathematica's Context, but I do not understand why the short name of the variable defined in the temp` context (x) returns the Global definition. I am following the section ...
2
votes
2answers
169 views

Make a colored ListPlot

Basically I have a set of 3D points, such as {3,4,3} or {4,1,4}. Instead of plotting the points in a 3D space, I want to plot the x,y coordinates of the points on the 2D plane and use the z coordinate ...
1
vote
0answers
52 views

Computing integral involving derivatives

I want to evaluate an expression $\int_C g(\nabla f)ds$. This is an integration along a curve $C$ in a plane given as a function of some parameter $s$: ...
3
votes
1answer
205 views

Nested If statement with unevaluated arguments

I have a list of boolean functions {f1, f2, f3, ...} that take a value and return True or ...
1
vote
0answers
94 views

Improving semantic interpretation of dates

SemanticInterpretation and Interpreter are promising but imperfect, eg extracting dates and calendar expressions from semi-...
3
votes
0answers
314 views

Minimalistic code challenge on Apollonian gaskets

I've been recently fascinated by the beauty, symmetry and mathematical richness of the Apollonian gaskets. So I felt myself challenged to see if it was possible to generate one in Mathematica with ...
9
votes
0answers
576 views

Step-by-step instruction to Install C Compiler

I remember using C compiler on my previous computers, and I never had any problems installing them. At this time, however, I failed to work through the instructions provided in Mathematica ...
1
vote
2answers
63 views

Transforming functions

I am not familiar with Mathematica but have the following question: I am trying to write Mathematica code that transforms $x^a+y^a$ to $(x+y)^a$ for any $x$ and $y$ and integer $a$. I also need to ...
1
vote
1answer
96 views

How to show all terms of a (very) large expression which was cut by skeleton << >>?

I obtained a very large expression but I noticed that Mathematica omitted some terms and wrote <<1>> or <<8>> instead. I would like to see all terms in order to write rules that simplify ...
1
vote
1answer
115 views

cross point of intersecting lines [duplicate]

What is the easiest way to find the crossing point of two intersecting lines passing lets say through points line1 = {p1,p2}, line2 = {p3,p4}?
0
votes
0answers
90 views

DSolve response with DSolve

I'm trying this code ...
-1
votes
1answer
92 views

Looping within linear programming

I am trying to do some network programming around optimization. Here is a reduced sample: ...
4
votes
1answer
70 views

How to stop a Dynamic[] in one notebook from hurting performance in another?

I have two notebooks open, one has a dynamic expression running (a simple clock) ...
2
votes
2answers
203 views
0
votes
0answers
93 views

imaginary part in optimization problems

I have some trouble with an optimization problem. The constraints are always real, but in the first place there are also complex parts in the expression (which all sum up to 0). The problem now is ...
4
votes
1answer
296 views

mathematica use too much memory to Import large dat file

Err... When I try to Import a .dat file by dat = Import["D:\\TIEGCM\\solar_input\\omni_m_all_years.dat", "Table"]; or ...
1
vote
3answers
445 views

How to simplify and shorten pattern code?

I this code to sorting only those tuples that are have total sum of 15 without repetition.: ...
0
votes
1answer
71 views

Can't obtain a closed form expression for an integral

I am trying to find the result of quite a complicated double integral. While the first part (being a Principal value integral) gave no particular problems, the second one is not providing any closed ...
0
votes
1answer
156 views

Using WhenEvent

I want to solve this simple equation with a event: ...

15 30 50 per page