TransWikia.com
  1. All Categories
  2. Mathematica

Mathematica : Recent Questions and Answers (Page 53)

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

Is Shooting the best NDSolve method for two point conditions, and how to improve its accuracy?

Hi I have a two point conditions problem (controlled SIR epidemics via Pontryagin BVP), which is supposed to depend heavily on initial conditions, which break the problem into...

Asked on 07/19/2021

2 answer

Evaluating function taken as input

Consider this toy example:myDerivative[f_, x_] := D[f, {x, 2}]This defines a function myDerivative that takes in a function f and a variable x and takes the second derivative of...

Asked on 07/19/2021 by Sami

0 answer

Import data into Mathematica

I have one question.I have got my data xy1 from Matlab.But when I import it into Mathematica,I get result as follow XY1 = Import["xy1.mat", Path -> "D:Matlabdata"]...

Asked on 07/19/2021 by Bo Zhu

1 answer

Simulating electrons passing through a beam splitter for random number generation

I would like to write a program that would simulate the trajectory of an electron/photon passing through a 50-50% beam splitter and depending on which detector the particle is measured,...

Asked on 07/18/2021

1 answer

Why do I get the (NMinimize::nrnum) error and how to fix it?

I have an energy function which depends on the angles of the electrons({x} symbol for theta) and phase of electrons({y} symbol for phi). I am using NMinimize to minimize the...

Asked on 07/18/2021

0 answer

How to solve the differential equation , when my initial condition is Infinity

int[r_]=-((557.310989080004 r)/((37.3042 - r) (-25.578 + r) (62.8822 + r) Sqrt[0.0345106153943703 - ((37.3042 - r) (-25.578 + r) (62.8822 + r))/(3000 r)]))This is the function of r...

Asked on 07/18/2021 by Immy Salam

1 answer

Constraints and Tolerance

So I'm running NMaximize for optimizing a value and for constraints, I need the parameters to belong to a discrete set of elements. Basically, the constraint looks like,And @@Table[{Subscript[x,...

Asked on 07/18/2021

0 answer

Summing list elements for given index tuple

Is there a more compact way of summing certain elements of lists together when given a tuple of which elements to sum. For example if I am given the list...

Asked on 07/18/2021

1 answer

How can I list the common elements of two lists?

The elements of both lists are given as A={9,5,9,3}, B={9,9,5,5} In this case, how can I list the list {9,5,9} of the common elements of the two lists? (The order...

Asked on 07/18/2021

1 answer

Plot a contour of concentration profile for a sphere

Assuming a linear concentration profile in a particle(sphere), I managed to make a SliceContourPlot3D for 2 linear concentration functions(a function of radius). I met some problems here:There are some strange...

Asked on 07/18/2021 by elapsed

0 answer

Ask a Question

Get help from others!

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