Linked Questions

549 votes
37 answers

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
19 votes
5 answers

Implement the Bisection algorithm elegantly and easily

Description: Rencently, I have finished my course Numerical Analysis, so I'd like to implement many algorithm that I have learned from that course.By this practice, I hope that I can improve my ...
xyz's user avatar
  • 605
8 votes
4 answers

How to draw a hanging rootogram in Mathematica?

I am trying to plot a hanging rootogram of some data in Mathematica. I can't seem to find a built in function for it, while simply using Histogram (on "transformed" ...
Emayla's user avatar
  • 91
7 votes
3 answers

Efficient way to test if all the elements in a list are Integers? [closed]

Consider a list such as s = {1, 2, 3, 3, 5, 6, 3} With IntegerQ[number] , you know if ...
Mika Ike's user avatar
  • 3,201
3 votes
3 answers

Selecting all the elements of different length that contain only numbers

If I have a list of lists with different lengths: {{1, 2, 3}, {1}, {1, 2, 3, 4}, {x}, {1, x}, {2}, {2, 3}} How can I extract all the sub-lists with no symbols: <...
MathX's user avatar
  • 1,594
9 votes
1 answer

NIntegrate receiving a function with NumericQ which returns a list

Can some one please explain why ...
Art Gower's user avatar
  • 586
3 votes
2 answers

Sequence and boolean And

I'm trying to figure out if a calculation result it's a valid result. As it return a matrix, I need to test that every element it's a number, so I thought this could work... ...
crazzymath's user avatar
4 votes
2 answers

Pattern test for variables during function definition

I am having a problem with pattern testing on variables during function definition ...
PlatoManiac's user avatar
  • 14.7k
4 votes
1 answer

FindMinimum, NMinimize, etc. with external process [duplicate]

I was hoping to be able to use MMA's minimization power to work with an external process. I want to minimize the function 'TryThisNumber[x_]' which sends the value of x to something external and gets ...
Cuboid's user avatar
  • 1,421
1 vote
1 answer

What is the correct way to use NIntegrate inside the FindMinimum function?

I'm having minor issues with the FindMinimum function when using NIntegrate inside. The functions work perfectly well but I get ...
Meclassic's user avatar
  • 953
2 votes
1 answer

Can I make NumericQ Listable? Why isn't there an Option to test in ListQ?

I have a function which takes lists as arguments. But it shall be evaluated only, if the elements in the lists are all numeric. Otherwise I want the function to remain unevaluated. There is a ...
Adalbert Hanßen's user avatar
2 votes
1 answer

How to solve nonlinear equations involving integrals

Sorry, if this is a duplicate, I was not able to find a corresponding answer. The only question related to mine, as far as I can see it, is this one: How to solve algebra equations containing ...
Mauricio Fernández's user avatar
2 votes
1 answer

How to properly apply NumericQ or similar here? - NDSolve inside NMaximize

I wrote a function that numerically solves a given Schrodinger equation and returns replacement rules to obtain the time evolution operator. It looks and is used as follows: ...
Lukas's user avatar
  • 2,702
1 vote
1 answer

NIntegrate fails because of symbolic evaluation [closed]

The following function can be plotted without any issues, say with ContourPlot, but NIntegrate fails because it tries to ...
Daniel's user avatar
  • 499
1 vote
0 answers

problem facing while solving a coupled differential equation [closed]

I am trying to solve coupled differential equations, inside which I have a function which I am getting by doing NIntegrate. The code is shown below: ...
Arghya Datta's user avatar