TransWikia.com
  1. All Categories
  2. Mathematica

Mathematica : Recent Questions and Answers (Page 131)

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

improve performance of list creation

How can I improve significantly the speed of the following code?nmax = 10000000;r = Range[nmax];res = ({#, #^2, If[Mod[#, 2] == 0, "even", "odd"]} & /@ r); // AbsoluteTiming{15.3145,...

Asked on 04/01/2021 by mrz

2 answer

How can I draw a sphere in the Minkowski space?

If the equation of the circle in the Minkowski 3 space is given as$S_1^2 = {x in E_1^3:- x_1^2 + x_2^2 + x_3^2 }$, how can I replace...

Asked on 04/01/2021 by Heba Serry

1 answer

add a color bar legend to a 3D plot

This has a connection to the previous post here:Using a complicated function as color functionAlso, a recent post of mine appeared here:Create a colorbar plot...

Asked on 03/31/2021

1 answer

Why does Mathematica try to take the first element of the empty list when plotting?

I'm using Mathematica 12.1.1.0. When I enterListPlot[{{{1500, 4}, {1510, 4}, {1520, 4}, {1850, 6}}, {{1500, 1}, {18100, 1}}}, PlotLabels -> {"a", "b"}, Joined -> True,...

Asked on 03/31/2021

2 answer

How to share multiple "tagged" functions (symbols) like f[a][b] in parallel kernels?

I would like to give some context: I need to analyse many data sets stored in files using different kind of analyses. To keep track I like to tag each...

Asked on 03/31/2021

1 answer

How do I impose initial conditions to solve a nonlinear ode in Mathematica?

I’m trying to solve u_xx + x/2 u_x = 0, with t=0 as x goes to infinity, not sure how to impose initial conditions though? Thankyou...

Asked on 03/31/2021 by Malvika Pal

1 answer

What is the right way to use the option PlotLegends and "Expressions"

How do I plot the graph of x^2,x^4, in the same graph for x in [-5,5].PlotRange->{-5,20},PlotLegends-> "Expressions"].I thought the input would bePlot[{Sin[x^2],Sin[x^4]},{x,-5,5},PlotRange-> {-5,20}, PlotLegends-> "Expressions"] ...

Asked on 03/31/2021 by user74968

0 answer

How to speed up by Compile?

I need to NDSolve a system many times by scanning some of its parameters and do some matrix calculation with the (discretized) solutions. The example is the following code. The...

Asked on 03/31/2021

1 answer

How to solve this wave EDP with Mathemamatica ? What is the best solver for this?

Help me please to understand how to solve many EDP with Mathematica.weqn = D[u[x, t], {t, 2}] == D[u[x, t], {x, 2}]Ivi = {u[x, 0] == 1}Ibc = {u[0,...

Asked on 03/31/2021 by anthony villacis

1 answer

Graph3D - replace vertices with MoleculePlot3D

How can we replace the vertices in a 3-dim graph with individual Graphics3D objects? In my concrete case I want to visualize a chemical network and replace vertices with their...

Asked on 03/31/2021

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP