Tag Info

New answers tagged

5

OK, now let me have a trial:D. In this answer I will implement the Bernstein fully. We know the Bernstein basis function owns the :following defintion: $B_{n,i}(u)=\binom n i u^i(1-u)^{n-i}$, where $0 \leq u \leq 1$ In addition, the first derivative of $B_{n,i}(u)$ has the below relationship: $B'_{n,i}(u)=n\left[B_{n-1,i-1}(u)-B_{n-1,i}(u)\right]$ Main ...


6

I have given your code only a cursory read but I think I spotted a (the?) problem: your Message code uses an unheld equivalent of the test expression itself. This cannot work. If the expression would generate a Message the first time it would even within Message and you will get infinite recursion. Use HoldForm to prevent this: (*check the type of the ...


4

Mathematica usually shows all of the stack trace elements that are due to user code. It omits stack frames that belongs to JLink itself. This is rarely a problem but, as we shall see, there is a small possibility that we could lose some frames of interest. Example Before we talk about the missing frames, let's look at an example. The following code is ...



Top 50 recent answers are included