Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

 

 

sum((1+1/n)^n-exp(1), n = 1 .. infinity)

Good Afternoon,

Would anybody be kind to help me with the attached file. I have created procedures to calculate the Area, center of gravity , section modulus and moment of inertia of a cross section.

I'm testing the worksheet with an existing example from a text book, and the results are as follows

Area = 75*in2

Zxxtop = 119.219*in3

Zxxbott = 133.245*in3

Ixx = 629.212*in4

Zyyleft = 88.583*in3

Zyyright = 88.583*in3

Iyy = 442.917*in4

xbar = 4.722*in

ybar = 5.0*in

Hi there,

while programming, when I enter RETURN in my proc, I get a strange error

"Error, unable to delimit strings/identifiers"
 

and no further clues given.

What's wrong?

I have a lot of equations one of them is like "q:={3-x=1}"

if I use   switch:=z->lhs(z)-rhs(z); and I use map(switch,q); it gives me 2.-x which is bad for Bertini software which I use for some purposes. I need to have 2.0 or 2 but not 2.

This dot after 2 without any number after that is trouble for me.

What should I do?

Thanks

 

 

How can I simulate and estimate the parameter value p for an AR(1) model of the form X(t) = p*X(t-1) +E

or alternatively X(t) - X(t-1)=p*X(t-1) - X(t-1) + E   where E is a random term 

Hello,

I have a symbolic function, and I want to see its pointwise numerical evaluation in fortran format.

Basically, if I have a function like e^x, I want an array like:

  2.7183d+000
  7.3891d+000
  2.0086d+001
  5.4598d+001
  1.4841d+002
  4.0343d+002
  1.0966d+003
  2.9810d+003
  8.1031d+003
  2.2026d+004

What I tried doing was:

-----

Shift+Left Arrow to choose the region which I'll make them numerator part,or add parentheses for the part.

 

(6+7)/

Any other convenient methods?

how to approach this problem: for what value of a, the expression is minimum:- g(n,a):=(1+1/(n))^(((n^(1/(a))+(n+1)^(1/(a) ))/(2))^(a))-exp(1) the answer seems to a=3.

F2:

 + | 0 1        × | 0 1
 --+----        --+----
 0 | 0 1        0 | 0 0
 1 | 1 0        1 | 0 1

F3:

 + | 0 1 2       × | 0 1 2
 --+------       --+------
 0 | 0 1 2       0 | 0 0 0
 1 | 1 2 0       1 | 0 1 2
 2 | 2 0 1       2 | 0 2 1

F4:

Actually I reach that in mathematica not easy,

Show[Plot[
  Piecewise[{{0, x < -0.5}, {1/5, x < 1.3}, {2/5, x < 1.7}, {3/5,
     x < 2}, {4/5, x < 2.8}, {1, x > 2.8}}], {x, -2, 5},
  Ticks -> {{-0.5, 1.3, 1.7, 2, 2.8}, {1/5, 2/5, 3/5, 4/5, 1}},
  PlotStyle -> {Thickness[0.01]}],
 ListPlot[{{-0.5, 1/5}, {1.3, 2/5}, {1.7, 3/5}, {2, 4/5}, {2.8, 1}},
  PlotStyle -> PointSize[0.03]]]

is this identity true (i believe it is)?

 

p*int(f,x=0..infinity) = sum ((int(f,x=n..n+p)),n=0..n+p) + sum((p-n)*(int(f,x=n-1..n)),n=1...p-1)

 

p*(int(f(x), x = 0 .. infinity)) = sum(int(f(x), x = n .. n+p), n = 0 .. n+p)+sum((p-n)*(int(f(x), x = n-1 .. n)), n = 1 .. p-1)

 

If it is true how we understand it, and understand it through Maple.

I have a set of data. The number of times an event occurred each day. So my data set looks like, [[daynum, numevents]] == [[1,3],[2,1],[3,5],...] where daynum is the day number, and numevents is the number of times an event occurred that day. What I want to do is plot these like a histogram, or barchart, or column graph (I'm not very good at stats, so I may not know what I'm talking about here) - anyway, something like that - with daynum on the horizontal axis and numevents on the vertical axis. And the numevent should be a tall rectangle with height = numevent value.

My first question is :   How can I count the number of recent calls to a procedure (not exprofile) ?

for example:

X := proc ()
Sample(RandomVariable(Normal(0, 1)), 1)[1]
end proc;
X();  X() ;

should return 2
 

 

My second question is:  

I have a procedure as seen below which I plot in a component plot  Do(%Plot0=X(%Slider_mu,%Slider_sigma,%Slider_t));

The Do call has 3 sliders inputs in the form of mu, sigma, tt.

ComplexExpand[(1 + I)^n + (1 - I)^n]

this is in mathematica

 

In the previous post, I described why parallel programming is hard. Now I am going to start describing techniques for writing parallel code that works correctly.

First some definitions.

  • thread safe: code that works correctly even when called in parallel.
  • critical section: an area of code that will not work correctly if run in parallel.
  • shared: a resource that can be accessed by more than one thread.
  • mutex: a programming tool that controls access to a section of code
First 1894 1895 1896 1897 1898 1899 1900 Last Page 1896 of 2223