# All Questions

189 views

### make a list based on two other lists

I have two lists: list1={4,6} list2={1,2} and I now want a function f that produces f[list1_,list2_]:={1,1,1,1,2,2,2,2,2,2} ...
56 views

### Quick question about the FinancialBond function

If I want the fair price of a bond with coupon interval twice per year with interest rate $i$ p.a., I use "CouponInterval"->1/2. However, the InterestRate should be the effective, or nominal interest ...
93 views

### Removing outermost braces [duplicate]

I want to calculate the Kronecker product of several matrices in different orders. the number of these matrices must be changeable. ...
480 views

### How to compute this triple integral? [closed]

In Mathematica how can I compute this integral:$$\iiint_{D}\sqrt{(1-9z^2)(1-4y^2-9z^2)}\,dx\,dy\,dz$$ where D is the domain: $$D: x^2 +4y^2+9z^2\le1$$ Please I need help!!!
439 views

### Frame thickness in Framed[] [duplicate]

I need to change the frame thickness in Framed[] in order to create a legend box. How can I set the frame thickness in Framed[]? ...
106 views

### Defining a rule with functions of arbitrary arguments

I have a set of "functions operators", say A1[u],A2[u],A3[u],and I would like to define a rule such that, for instance, (x*A1[u1]).(y*A2[u2]) returns ...
58 views

### A more efficient way of fitting a non-linear model that returns an entire list?

I have a function that takes two parameters, del and nu, and returns a list npoints long ...
238 views

### TableView displays negative numbers incorrectly

I'm trying to substitute TableForm with TableView because TableView is more handy with big data . But on my Mathematica 9.0.1 (ubuntu 14.04_64bit) there is a problem with negative numbers: ...
194 views

### How do I limit the iterations in a while loop?

Is there a way to limit the number of iterations in a while loop? Right now I am cleaning up the code, and for now if I make a mistake, the loop keeps going forever. I'd like to be able to limit the ...
133 views

### Abort during animation

I am running an animation with the following command: ...
78 views

### Simulating a system of nonlinear ODEs?

I was trying to simulate a system of ODEs on Mathematica in an effort to try to understand how to muck around with Mathematica but for some reason the following lines of code do not yield any results; ...
162 views

### Minimization in single component of BSpline to extract points

I smoothed some data with a BSpline $B[t] = (x[t],y[t])$. I would like to extract certain points from this spline by their x-Values, $x_0$. The easiest way I came up with was to minimize ...
146 views

### divergent part of a series

I am trying to find a function that gives me the divergent part of series in any case. The method "Series[]" does not work because Series[42,{n,0,-1}] gives as ...
304 views

### Row and Column Headings for a Grid

It would be useful for me if I could write: Grid[{{a, b}, {c, d}, {e, f}}, GridHeadings -> {{"r1", "r2", "r3"}, {"c1", "c2"}}] just like ...
400 views

54 views

### Importing a Matrix whit different column numbers depending on the row

I have a bunch of coordinates given in a file. The file contains Startpoints and Endpoints of arrows in columns(Example): ...
3k views

### How to force 2+2=5

I was looking at this question (writing a program such that 2 + 2 = 5) and tried to write something in Mathematica, but I couldn't get something to work without completely replacing ...
135 views

### Reverse-order Negative BarSpacing

Suppose I have some data for a bar chart: ...
385 views

### Find polynomial equation for set of 3D data

data was given in columns in the order {y, x, z}, with y dependent on x, z ...
113 views

### why I can not find the correct derivative with D

the coupled ODE is ...
400 views

### Aligning two lists

I have two lists, L1 and L2, each with a key and some data. Let us say the key is a person's name, a string, and the data follows. (To respond to rasher's query:) Let us also assume the lists are ...
93 views

### Help function ? sometimes doesn't show help

I was just wondering if this is a known bug. When I want to get basic help using the ? command before some function name, it typically works for a while, but I've ...
72 views

### Graph label smushed in when printing

I was playing around with the printing options because at first my notebook's printout was strangely way too large. However, after apparently solving the problem, now I noticed that when I print out ...
46 views

### Placement of pattern matching rules in functions [duplicate]

Is there any difference at all between f[x_Integer /; x >= 0] := x + 1; f[x_Integer] := x - 1; f[x_] := Null; and ...
81 views

### How to draw guide lines spanning between two panels or graphs?

I would like to draw the blue guide lines as shown spanning between the top and bottom graphs. Any help is appreciated. Thanks!
278 views

### find cycle in directed graph

Given a digraph G in the form of a list of edges, is there implemented some command that returns a directed cycle in G of ...
363 views

### position of element in a list using a function

How can I find in a list l the positions of all elements satisfying a boolean function f. For example, how can I pick in ...