Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I got two columns of data in excel: current (I) and voltage (V). What i want to do the following things:

1. read the data set into Maple 12.

2. plot the current vs voltage

3. Fit the plot to the function with polynomial form:  I=aV^2+bV

4. find the R-squared value of the fitted function.

Could anyone kindly tell me the detailed code to achieve this, thanks a million.

 

A method of fitting a curve to data points so as to minimize the sum of the squares of the distances of the points from the curve.
For example (yei,x1i,x2i,x3i,x4i) is experimental data and relevant function is y=f (x1,x2,x3,x4), some unnkown parameters

(a1,a2,a3,a4) can be solved by minimizing the sum of squares of residues.
Procedure is:
ry:=(yei-y)^2;
Tr:=sum(f, i = k .. n);
da1:=diff(Tr, a1);da2:=diff(Tr, a2);da3:=diff(Tr, a3);da4:=diff(Tr, a4);

Hello.

I was wondering if it is possible to plot a heat distribution within a thin square plate in Maple knowing the temperature as a function of the coordinates in the plate? The result would be a plot with, for example, red representing the hotter regions and blue representing the colder regions.

Thanks in advance.

when I do the integration

>int(exp(-I*x*p),x=-infinity..infinity)

the result  obtained is  "undefined  "

but, actually it equals  Dirac(p). How can I get this result?  I badly need this.

well,it's the Fourier transformation of the constant function 1, but I don't want to use the internal function fourier();

Thank you!

 



Hello! Excuse me for my English!

I am student. How can I evaluate the integral numerically?

Maple can't compute:

 

evalf(Int(sin(x^19),x=0..10))

 

I think, that the problem is in the oscillating function.

Maybe, I have to change some options?

restart:
with(student):
with(linalg):
# system of linear equations
A := array(evalf([[2, -1, sqrt(2)], [3, 2, -3], [3, sqrt(2), -15/7]])):
B := array(evalf([5 + 7*sqrt(2), -24, -12 - 3*sqrt(2)])):
B := `<,>`(B):
print(A):
print(B):
N := 3:
t := 1*10^(-6):

for j from 1 to N do
for k from j to N do
S := 0:
for i from 1 to N do
S := S + A[i,j]*A[i,k]:
end do: # end of i
C[k] := S:
end do: # end of k
C := 0:

Hi friends,

I have plotted a 3d function by plot3d (z=f(x,y)) , but at the same time I need to know the values of z and also the relevant x's and y's. In fact, when I extract z's from it via "op" function, I don't know to which (x,y) it relates. The only thing I get is the range of x,y, for example 1..5.

Thanx!

Hello all

I am new to maple. I am calculating a mutual information for a continuous distribution over a set of five elements. To approximate the continuous distribution I loop over percentage of integers from 0.01 to 0.99 in steps of .01 For five number this is like 10^10 iterations. Given two restrictions p_1+...+p_5 = 1 and p_1 <= ... <= p_5 this is reduced to something less than 10^7 iterations for the innermost loop. Still this process is very slow. (Well...

Hi, everyone,

I am dealing with a simplified model of my real problem. Here is the function definition

f:=(x,lambda)->min(x lambda,0)

I can plot this function in plot3d:

plot3d(f(x,lambda),x=-2..2,lambda=-2..2, axes=boxed)

but if I try to plot the derivitive of this function w.r.t. lambda (which is a discontinuous function) by:

plot3d(diff(f(x,lambda),lambda),x=-2..2,lambda=-2..2, axes=boxed)

I get error message: Error, (in PiecewiseTools:-Convert...

Given Datas:

xd := Vector([0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2500, 3600])

yd1 := Vector([0, 6.24, 11.26, 14.9, 17.58, 20.01, 22.0, 23.56, 24.85, 26.03, 27.36, 35.07, 39.4, 42.61, 44.36, 45.79, 46.62, 46.9, 47.79, 48.85])

Given function: (looks a little different in Maple, but copy and paste did not work)

<maple>F2 := proc (x) options operator, arrow; K2*(1-(T12-Tv2)*exp(-x/T12)/(T12-T22...

Maple seems to constrain pie charts to having only a name, or only a percentage or frequency. I want it all.  I don't want to choose between labels and numbers.

A pie chart like this one would be a good start: http://www.mmsonline.com/cdn/cms/Sandvik-pie-chart.jpg except I want to present frequency as well.

Notice in the example above that the large...

Here's my first attempt at posting some 2DMath on this site.

First, I will paste directly from 2D output in a running Standard GUI Maple session.

BesselJ(0, x)+GAMMA(Psi)-sqrt(abs(omega))

Are the following paragraphs from the new Mapleprimes Style Guide supposed to contain marked up 2DMath or interpreted Maple result, because right now they don't.

See http://www.mapleprimes.com/help/styleguide

"For example, if you enter <maple>x^2/y^2</maple> you will get this image: x^2/y^2

Any Maple syntax will appear, so you can get complicated and enter this: <maple>sum(cos(x^2)/sin(exp(y)),x=1..infinity)</maple>
which then appears as this image: sum...

For fun, I have created a sweet and short small animation procedure, which I must say is one of my biggest programs yet (gasp!) as much as I have played with Maple I should have at least created a few more ... In any case, it is a procedure of a random set of numbers chosen and displayed in a histogram on the left with a running total tallied on the right. It is by no means efficient (but feel free to fix up my code and tweak it a little bit, and let me know so I can learn more...

First 1800 1801 1802 1803 1804 1805 1806 Last Page 1802 of 2224