MaplePrimes Questions

Can there be approximate ways of calculating the derivative? Maybe I should count on some formula? Or can not it be calculated in any way at all?

I want to solve transcendental equation in maple and facing problem to plot  “β” vs “a” plot, using Eq. 8, 9, 10...

PDF file attached below:

Equation_file.pdf

restart; with(plots);
G := 1; M := .1; R := 1; P := .72; alpha := .1; phi := 1; K := 1; n := 2; beta := 1;
                               1
                              0.1
                               1
                              0.72
                              0.1
                               1
                               1
                               2
                               1
ode1 := {(1+(4/3)*R)*(diff(theta(x), x, x))+(1/2)*P*f(x)*(diff(theta(x), x))+alpha*theta(x) = 0, n*(diff(f(x), x, x))^(n-1)*(diff(f(x), x, x, x))+f(x)*(diff(f(x), x, x))/(n+1)+G*theta(x)-M*(diff(f(x), x)) = 0, f(0) = 0, theta(10) = 0, (D(f))(0) = beta*K*((D@@2)(f))(0), (D(f))(10) = 1, (D(theta))(0) = -phi*(1-theta(0))};
 /7  d  / d          \                     / d          \
{ - --- |--- theta(x)| + 0.3600000000 f(x) |--- theta(x)|
 \3  dx \ dx         /                     \ dx         /

                         / d  / d      \\ / d  / d  / d      \\\
   + 0.1 theta(x) = 0, 2 |--- |--- f(x)|| |--- |--- |--- f(x)|||
                         \ dx \ dx     // \ dx \ dx \ dx     ///

     1      / d  / d      \\                  / d      \      
   + - f(x) |--- |--- f(x)|| + theta(x) - 0.1 |--- f(x)| = 0,
     3      \ dx \ dx     //                  \ dx     /      

  f(0) = 0, theta(10) = 0, D(f)(0) = @@(D, 2)(f)(0),

                                           \
  D(f)(10) = 1, D(theta)(0) = -1 + theta(0) }
                                           /
dsol := dsolve(ode1, numeric, method = bvp[midrich], range = 0 .. 10);
Error, (in dsolve/numeric/bvp) initial Newton iteration is not converging

 

I try to get real solutions for a PDE, i.e. real-valued functions depending on real variables. Maple computer complex solutions, i.e. complex-valued functions depending on complex variables.

Here is the example in question: (the four function f1, f2, f3, f4 depend on the four unknowns lam, mu, l, m)

`assuming`([pdsolve([diff(f2(lam, mu, l, m), m)-(diff(f1(lam, mu, l, m), l))-(diff(f4(lam, mu, l, m), mu))+diff(f3(lam, mu, l, m), lam) = 0, diff(f1(lam, mu, l, m), m)+diff(f2(lam, mu, l, m), l)-(diff(f3(lam, mu, l, m), mu))-(diff(f4(lam, mu, l, m), lam)) = 0])], [real])

`assuming`([pdsolve([diff(f2(lam, mu, l, m), m)-(diff(f1(lam, mu, l, m), l))-(diff(f4(lam, mu, l, m), mu))+diff(f3(lam, mu, l, m), lam) = 0, diff(f1(lam, mu, l, m), m)+diff(f2(lam, mu, l, m), l)-(diff(f3(lam, mu, l, m), mu))-(diff(f4(lam, mu, l, m), lam)) = 0])], [real])

How can I solve my problem and receive only real solutions to my PDE?

A similar problem had been posted before (see here), but I can only find a cached version of the post where no answers are displayed.

Hi,

I would like to control the extents of my 3D parametric plot. Increasing the grid creates too many gridlines and I just get a black plot  (and I still don't get the extent in the y-coordinate that I want).

Any suggestions how I might be able to get this plot from -360 to 0 and -20 to 60 completely filled in? (see attached workbook).

Any suggestions on how to control the gridlines?

An idea of what I am trying to do...I want to plot argument(z/(1+z)) vs. argument(z)*180/pi vs. 20*log10(abs(z)) with contours of argument(z/(1+z)) and 20*log10(abs(z/(1+z))
This is a 3D plot of the output phase of a Nichol's Chart (with the output contours of the Nichol's chart).

Thanks.

phaseplot.mw

Hello,

I need a little help...

what I want to do, if i have 3 equations  with multiple variables and i want to get derivative of some of these variables wrt other variables while setting others as constants

here in the example

1st i thought the last equation should have partial m / partial f ... how can i get that

2nd if ,another problem, i wanted to set z as a constant so it won't consider getting its derivative, how do i get that

diff_test.mw

f1 := x = y+z

x = y+z

(1)

f2 := y = 2*f^2+3

y = 2*f^2+3

(2)

f3 := z = 22*f^3+33*f+m

z = 22*f^3+33*f+m

(3)

implicitdiff({f1, f2, f3}, {x, y, z}, x, f)

66*f^2+4*f+33

(4)

NULL


Download diff_test.m

 

hope i was clear in my explanation. thank you

 

I am getting this error for almost everything that i write in maple today, and i simply have no idea what causes it or what it means

 


 

"?SetOfCommonDivisors:=(X,Y)->{[[1,X intersect (map(numtheory:-divisors, Y))<>{???}],[0,otherwise]]??"

Error, unable to parse 'mverbatim'

"?SetOfCommonDivisors:=(X,Y)->{[[1,X intersect (map(numtheory:-divisors, Y))<>{???}],[0,otherwise]]??"

 

``


 

Download WTF_ERROR.mw

i have a function,when using fsolve to solve it, it has two roots. when i substitute it into the main function, it has some residual and it is not exactly 0. how should i remove the residual ? i do not want to use "solve" command and i should use "fsolve" command. tnx in advance


 

restart:

f:=3*(2*x-1)^2*(1/2)-1/2;

(3/2)*(2*x-1)^2-1/2

(1)

ans:=fsolve(f)

.2113248654, .7886751346

(2)

eval(f,x=ans[2])

-0.4e-9

(3)

 

 

 

``


 

Download problem.mw

Hello,

So my questions is fairly simple but I am not sure if Maple can do this. I want to create a Matrix full of partial derivatives (Jacobian), but computing this Jacobian is maxing out my RAM. So I would like to create each row (or column) of the Jacobian seperately and save each row (or column) in a Matrix that has already been saved to a file. Basically I would like to store values in a file (in a loop) without overwriting the file.

hey

not from a ready-made example from a module

Hello I trie this code C:

FUNCTION ran1(idum)
INTEGER idum,IA,IM,IQ,IR,NTAB,NDIV
REAL ran1,AM,EPS,RNMX
PARAMETER (IA=16807,IM=2147483647,AM=1./IM,IQ=127773,IR=2836,
* NTAB=32,NDIV=1+(IM-1)/NTAB,EPS=1.2e-7,RNMX=1.-EPS)
“Minimal” random number generator of Park and Miller with Bays-Durham shuffle and
added safeguards. Returns a uniform random deviate between 0.0 and 1.0 (exclusive of
the endpoint values). Call with idum a negative integer to initialize; thereafter, do not
alter idum between successive deviates in a sequence. RNMX should approximate the largest
floating value that is less than 1.
INTEGER j,k,iv(NTAB),iy
SAVE iv,iy
DATA iv /NTAB*0/, iy /0/
if (idum.le.0.or.iy.eq.0) then Initialize.
idum=max(-idum,1) Be sure to prevent idum = 0.
do 11 j=NTAB+8,1,-1 Load the shuffle table (after 8 warm-ups).
k=idum/IQ
idum=IA*(idum-k*IQ)-IR*k
if (idum.lt.0) idum=idum+IM
if (j.le.NTAB) iv(j)=idum
enddo 11
iy=iv(1)
endif
k=idum/IQ Start here when not initializing.
idum=IA*(idum-k*IQ)-IR*k Compute idum=mod(IA*idum,IM) without overflows by
if (idum.lt.0) idum=idum+IM Schrage’s method.
j=1+iy/NDIV Will be in the range 1:NTAB.
iy=iv(j) Output previously stored value and refill the shuffle taiv(
j)=idum ble.
ran1=min(AM*iy,RNMX) Because users don’t expect endpoint values.
return
END

 

How does this code in Maple?.

There are any sintaxis as *Value(point of addrees) that i  dont know this in Maple.

 

best Regars,

Hello,
Can i un a maple program in console mode (example, cmd of MS-DOS), by command line?. I ask this, beacause it would take a lot less time to execute.

Regards

Hi every body:

I have to obtain Amax where is the maximum value of the f(t) function at steady state but at first i don't know steady sate what's the mean and the second i don't know how to obtain it with maple. help me plz. tnx. 

f:=(t)->A*sin(x*t)

A := -6000.*x^3*((5.925123867*10^87*I)*x+5.830850605*10^88*x^2+1.752916719*10^90)/((4.241561702*10^89*I)*x^4-2.669934485*10^90*x^5-(3.812926555*10^90*I)*x^2+7.038145625*10^91*x^3+3.174301659*10^89*I-8.376628660*10^90*x)

Sin.mw

I am looking for advice as to avoiding or identifying what may elude to the cause of the error "Error, (in simplify/do) invalid simplification command" in circumstances where i have simply enclosed an expression with simplify(expression), and in most cases an error is not returned.

 

Thankyou in advance

First 840 841 842 843 844 845 846 Last Page 842 of 2434