janhardo

860 Reputation

12 Badges

11 years, 255 days
B. Ed math

MaplePrimes Activity


These are questions asked by janhardo

I can use a whole package in a procedure or a command from a package. 
Writing your own code needs sometimes external code from outside a procedure used ( a package..what else more?)
This i don't find back in the Maple helpfiles easily using external code in procedure  
 

 This old example uses display3d naming what is the same as display ( there is no display3d command in Maple ) 
It gives the error 

diskmethod(f,0,2,10,fig);
Error, (in with) package plots does not export display3d

The disk methode calculates 
V = int(Pi*f(x)^2, x = a .. b)

 The Code for diskmethoddisplay

diskmethod:=proc(f,a,b,N,figure::evaln)
  local X,Y,s,x,dX,i,disk;
  with(plots,display3d);
  X:=array(0..N);Y:=array(1..N);disk:=array(1..N);
  dX:=evalf((b-a)/N);
  X[0]:=a;s:=0;
  for i to N do
    X[i]:=a+i*dX; Y[i]:=evalf(f(X[i]));
    s:=s+evalf(Pi*Y[i]^2*dX);
    disk[i]:=plot3d([x,Y[i]*cos(theta),Y[i]*sin(theta)],
                x=X[i-1]..X[i],theta=0..2*Pi,grid=[2,51]):

  end do;
  figure:= display3d({seq(disk[i],i=1..N)},
            axes=box,projection=0.8,orientation=[-60,70]);
  print(`The approximate volume using`,N,`disks is V =`, s);
end proc:

 

A circle in XOY plane in a 3D axis system
There are two commands :
- spacecurve ( calculus)
- SpaceCurve ( vectorcalculus) 

p1 := plots:-spacecurve([x, sqrt(-x^2 + 1), 0], x = -1 .. 1, color = black, thickness = 5);
p2 := plots:-spacecurve([x, -sqrt(-x^2 + 1), 0], x = -1 .. 1, color = black, thickness = 5);
plots:-display(p1, p2, scaling = constrained, labels = [x, y, z]);

spacecurve plot for circle in parametric form sin(t,cos(t) ?
Spacecurve plot for circle  ( coordinatesystem )? 


 

At my first steps in vectorcalculus i calculating a scalar line integral, but the concept how to do this is not  yet clear to me 

ecxample_4_-_blz407_toegepaste_wiskunde.mw

https://drive.google.com/file/d/1K5mnfCAB_zSzLGNNz1rkUyjvRhCgpFi4/view?usp=sharing

 

I want to do a organised introduction in Maple  with the student and main vectorcalculus package
Is there some studymatrial to find for this ?
 

 

I did already some programmingexercises , but this sort of programming example i did not encounter in the programmingbook
How it is programmed in general lines ?
I do have a lot of small procedures to learn from

But it is too much asked here on the forum to explain all ins and outs for this procedure, because it is not that simple. 
 

Download Basisgrid_procedure.mw

 

First 11 12 13 14 15 16 17 Last Page 13 of 23