1. All Categories
2. Mathematica

# Mathematica : Recent Questions and Answers

Find answers to your questions about Mathematica or help others by answering their Mathematica questions.

## How to link Manipulate to specific questions to activate sliders

I have the following multiplication Manipulate:Manipulate[ x*y, {x, 1, 10}, {y, 5, 15} ...

## Create a dynamic growing list in Manipulate from data obtained by URLExcecute of API

I have a test API which sends me data from one or more tags in a SCADA/Historian system. For one tag, I refresh the API call every 5...

## How to choose the shortest route? (Vehicle routing problem)

This question is about a small instance of the classical vehicle routing problem (VRP). Someone needs to start from home and complete the three tasks of going...

## Improving mesh and NDSolve solution convergence

I have developed the code below to solve two PDEs; first mu[x,y] is solved for, then the results of mu are used to solve for phi[x,y]. The code works and...

## Problem passing a list from Mathematica to external python function

comp1a = Flatten[Join[{{0 + 0 i}}, {comp1}]];Flatten[comp1a[[1 ;; 6]]]This creates a list of complex values -> comp1a The first 6 terms in the list are:{0, -2.04375 + 1.33694 I,...

## Functions of several variables composition

If we have two functions $G,F:mathbb R^2tomathbb R^2$ then the mechanism$Fcirc G(x,y)=F(G(x,y))$ gives us a new map $Fcirc G:mathbb R^2tomathbb R^2$ called its composition. In a...

## How to add two labels to a point in ListPlot, and how to control the precise positions of those labels?

ListPlot has the option to label points using Labeled or Callout. At least those are the two ways to do it of which I am aware of. A simple example:...

## How can I reduce the error estimate of numerical integration in Mathematica?

Before introducing the integral I want to go through some definitions. Define triangles $T_1$ and $T_2$ by the points ${a,b,c}$ and ${d,e,f}$ respectively. Define D(u,v,x,y)...

## Storing results of a calculation as a list

Clear[Pressure, EnergyDensity, fromPressureToEnergy, fromEnergyToPressure, Ae, Be, Ap, Bp, Er, Mr, Pr, r, h, g1, f1, k1, m1, f2, g2, k2, m2, f3, g3, k3, m3,...

## Join two lists by using the first element

I have two lists, which as a simple example can take the form:l1 = {{a1,a2,a3},{b1,b2,b3},{c1,c2,c3}}l2 = {{a1,n1},{c1,n2}}How can I merge them by the first element in the list to...