Linked Questions

499
votes
37answers
115k views

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 ...
18
votes
5answers
3k views

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 ...
8
votes
4answers
1k views

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" ...
7
votes
3answers
4k views

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 ...
9
votes
1answer
2k views

NIntegrate receiving a function with NumericQ which returns a list

Can some one please explain why ...
3
votes
2answers
206 views

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... ...
3
votes
3answers
186 views

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: <...
4
votes
2answers
650 views

Pattern test for variables during function definition

I am having a problem with pattern testing on variables during function definition ...
4
votes
1answer
941 views

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 ...
1
vote
1answer
1k views

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 ...
2
votes
1answer
308 views

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 ...
2
votes
1answer
412 views

How to properly apply NumericQ or s.th. 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: ...
2
votes
1answer
315 views

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 ...
1
vote
1answer
161 views

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 ...
1
vote
0answers
55 views

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: ...