asfn

Mr. alireza seraj
3 years, 33 days


These are questions asked by asfn

briefing codes for implicit plot

March 16 2011 by asfn 272 Maple 13

hi. i write a program consists a for loop in which cycle 'i', x[i] and hz[i] is calculated.

now i want to plot hz[i] correspond to each x[i].

this code is working but how to brief them?

hhz := piecewise(x < X[1], hz[1], X[1] < x and x < X[2], hz[2], X[2] < x and x < X[3], hz[3], X[3] < x and x < X[4], hz[4], X[4] < x and x < X[5], hz[5], X[5] < x and x < X[6], hz[6], X[6] < x and x < X[7], hz[7], X[7] < x and x < X[8...

separately plot each line

February 22 2011 by asfn 272 Maple

how is possible to draw each line separately?

n1 := 1; n2 := 1.45; n3 := 3.5;

z0 := 120*Pi; d1 := 1; d2 := 1; d3 := 1;a := 1;

k0 := 2*Pi/lambda;

ub := sqrt(n1^2-`&beta;b`^2); vb := sqrt(n2^2-`&beta;b`^2); wb := sqrt(n3^2-`&beta;b`^2);

Ub := k0*ub*d1; Vb := k0*vb*d2; Wb := k0*wb*d3;

z1 := z0/ub; z1b := z1/z0;

a0 := -tan(Vb)/(wb*ub)-tan(Ub)/(vb*wb)-tan(Wb)/(vb*ub)+tan(Ub)*tan(Vb)*tan(Wb)/wb^2;

b0 := tan(Ub...

how can i solve two coupled differential equations like these: s1 := diff(n[D](t), t) = a-b*n[D](t)^2-c*n[D](t)-e*n[D](t)*n[T](t); s2 := diff(n[T](t), t) = b*n[D](t)^2-c*n[D](t)-e*n[D](t)*n[T](t); why dsolve({s1, s2,n[T](0)=0}) gives error?

missing vertical label command!!

March 15 2010 by asfn 272 Maple
if i have a saved single plot without any programing codes, how is possible to add a verical text for it's vertical axis label?

copying plot

March 15 2010 by asfn 272 Maple
why isn't possible to copy a whole plot in maple 13 and paste it in another locationof that page or another new blank tab, whereas in maple 12 was possible!?

piecewise or not?

March 11 2010 by asfn 272 Maple
if i have ten "hz", each displayed with hz[i] was calculated before, then want to make a continues expression and plot it, i use this form and it answered me correcctly. piecewise(x <><><><><><><><><>

win 7

March 09 2010 by asfn 272
why dont any of maples 11, 12, or 13 work properly in windows seven? for example: when i click on "open a file" or "save" botton, and then it opens a window, the respective window dont show "up one level" or "create new folder" and "details" bottons above it.
how is possible to join dots in a scatter plot after plotting, and make a line from a dotted plot?

implicitplot in MATLAB

November 18 2009 by asfn 272 Maple
who know how can i solve or plot a two unknowns equation in MATLAB like implicitplot in maple?

piecewise

November 13 2009 by asfn 272 Maple
hi. anyone know how can i merge a lot of function in a piece wise comment? and plot merged one. for example in x axis for each 1 cm of length, we have one function till 10 cm and i want to plot all of these functions in one combined diagram.

coeff of nonlin eq.

August 18 2009 by asfn 272 Maple

why doesn't "coeff" command work on this equation?

f=zin-z2(z3(z1(zin+I*z1*tan(beta1*d1))+I*z3*(tan(beta3*d3))(z1+I*zin*tan(beta1*d1)))
+I*z2*(tan(beta2*d2))(z3*(z1+I*zin*tan(beta1*d1))+I*z1(zin+I*z1*tan(beta1*d1))*tan(beta3*d3)))/(z2(z3(z1+I*zin*tan(beta1*d1))
+I*z1(zin+I*z1*tan(beta1*d1))*tan(beta3*d3))+I*z3(z1(zin+I*z1*tan(beta1*d1))+I*z3*(tan(beta3*d3))(z1+I*zin*tan(beta1*d1)))*tan(beta2*d2))

a0 := coeff(f, zin, 2);
b0 := coeff(f, zin, 1);
c0 := coeff(f, zin, 0);

maximization variable

July 12 2009 by asfn 272 Maple

how is it possible to identify the independent variable that maximize(or minimize) a function?
is it important to know the kind of the function?

Is it possible to specify the independent variable that maximize a function just via it's plot?

hi friends!
I have a 2*2 matrix(namely Mcell), whose elements vary as a complex function of "nu".
for each cycle of a "for" loop, h[j] := abs(Re(Mcell[2, 2])), whose diagram is periodic and has many crosses with y=1.
i just wanted the first two points(their difference) and used


L := Roots(h[j]-1, nu = 1 .. something, numeric); and
w[j] := L[2]-L[1];


in a "for" loop.

i check the answer, they are all true(w gets 20 values in 20 iterations).

how can i plot 20 pairs of (x,y) data,displaying both dots and one of available commands of CurveFitting Package in one diagram? for example if we have L:=[1,2,...,20]: and w:=[23,24,25,...,42]: plot dots:[1,23],[2,24],...,[20,42](but without writing these 20 pairs manual!) together with a fitting line in one diagram.

how can i get the inetersection point (a real number of x axis) of a complex plot and a real plot? and how to assign them respectively to an array?

for example the junctions of lines:

d1:=(sec(I*(x^2-2)))(exp(I*x)*sin(2*x)+cos(I*(2*x-3)));       and

d2:=0.5;  by  plot([d1, d2], x = -5 .. 5);

 

1 2 Page 1 of 2