janhardo

335 Reputation

8 Badges

11 years, 45 days

MaplePrimes Activity


These are replies submitted by janhardo

@acer 


 

 

 

 

I thought i could do the task step by step (learning step by step)

The calculations made on reaction on question are very useful for me to see basis calculus with plots to learn more

Here is the task where i am working on , could be interesting to see if there are more answer are possible opposite  the direction of the book is aiming for. 

But that is a lot work and that's why i tried to do it step by step and come up with a own solution 

 
 

Download betounes_ex_set2_task_3_vraagforum.mw

CD2-5.aangepast.mwsCD2-5.aangepast.mws

@acer 

Thanks

Impressive..

The task is draw in y the tangentlines in all 6 inflection points of y on  interval  0.1..16  ( so the y '' is needed) 
So inspection by sight shows then 6 infllection points for ( your calculation use 0..10 ) 

Yes, change sign must then be shown in  y '' to conclude were y  has inflectionpoints with a particular direction.

https://www.hhofstede.nl/modules/buigpunten.htm

@tomleslie 
Thanks 

I could chance in the procedure the functions : it is y and y ' , so the y plot with the inflection point depicted then

@tomleslie 

Thanks

@tomleslie 

Thanks 

The start function is f(x) = x^sinx  and the prime : x^sin(x)*(cos(x)*ln(x)+sin(x)/x  ,  and has the form  x^n
The task ask me to use fsolve command
 

I think for polynomial the exponent must be a integer number ..i must read more about this 

Thanks

I noticed already dat y '' = 0 was calculated ( that's good too for learning) : what gives all special points for y ( maxs,mins, inflection points), but i need only the inflection points of y for now. 

RootFinding:-Analytic(diff(fprime_expr,x,x)=0, re=0..16, im=-1..1);

If a replace fprime_expr (= y ' ) for y then i get the maxs and mins, right?  

y

y ' =0 :  max or min y

y '' = 0  : max or min +inflection points -> gives all points of direction chance of graph y

 

note: i must try to keep this simple, because the task was draw in  y the tangentlines in all 6 inflection points of y ( so the y '' is needed) 

Thanks

Amazimg with Maple 

Now i must this relate with the fprime graph in my worksheet.

@acer 

When the 2-dimensional array is evaluated you can see the content. 
Now with a one-dimensional array it seems to be not possible to see the content inside as a whole  ?..why is that ?

@acer 

Thanks

Some extra examples makes it more clear.

@Carl Love 

Thanks 

@Kitonum 

Thanks 

It was asked the do this by two pair of nested loops
Those nested loops do have more uses in other tasks i see and it is to get used of them

Maybe i see also your array specify in this book examples?

What makes it easier  ..to come up with this?   

@acer 

Thanks

Could not come up on this array

The elements are:

A[1,1]=1^1 , A[1,2]=1^2,   A[1,3]=1^3  A[4,1]= 1^4 

A[2,1]=2^1, A[2,2]=2^2,   A[2,3]=2^3  A[2,3]=2^4  

........................

De outer loop is for from top to bottom en inner loop from left to right

 

@Carl Love 


 

 

 

 

for I from I1 to I2 do statements end do
I stands for the varying index
I1 is the  starting value for the index
I2 is the end value for the index  

 

Array definition : 1-dimensional

restart;

A:=Array(0..6);# 1-dimensional array

Array(%id = 18446746044449226870)

(1)

A[1]; # a array element

0

(2)

A[0];

0

(3)

 

beware the array can start with a 0 or 1 ( depends on  varying index i  )

 Looking at  task (a) ..there are 6 numbers , so the index value  i  goes from 0 ..5  

a general formulae for the sequenze 1,3,9,...    

 

 

   
   
 

 

 

restart;

 

LET

(a)

X :=Array(0..5);

Array(%id = 18446746044449226870)

(7)

for i from 0 to 5 do
      X[i] := 3^i:
od;

1

 

3

 

9

 

27

 

81

 

243

(8)

X[1];

3

(9)

X;

X

(10)

the one-dimensional  array is conceptual the same as a list

Question : when should i use  for i a 0 or 1 ?  ..

 

(1b) A sequenze  -1,1, ..."  = (-1)^(n)" for  n= 0,...

G:=Array(1..12);

G := Array(1..12, {(1) = 0, (2) = 0, (3) = 0, (4) = 0, (5) = 0, (6) = 0, (7) = 0, (8) = 0, (9) = 0, (10) = 0, (11) = 0, (12) = 0})

(11)

for i from 1 to 12 do
      G[i] := (-1)^i:
od;

-1

 

1

 

-1

 

1

 

-1

 

1

 

-1

 

1

 

-1

 

1

 

-1

 

1

(12)

G[2];

1

(13)

G;

G

(14)

1(c)  this sequenze can be expressed in a general term1,4,7,10,...  3i+1  ( i = 0 ,...n )  

A:=array(0..6):

for i from 0 to 6 do
      A[i] := 3*i+1:
od;

1

 

4

 

7

 

10

 

13

 

16

 

19

(15)

A[0];

1

(16)

 


 

Download betounes_ex_set2_1.mw

@Carl Love 

Thanks

I made a overhaul of task 1c and get stuck for drawing cross-hatching one symmetry part of the graph. 

Also i used a piecewise function A__right , but don't understand it  

All integrals ( symbolic, numeric (Int and int ) give the same answer

 

  Don't know yet why the lines are not perpendicular 

 

  


 

 

 

      

restart;

f:=x->x^5-2*x^3-4*x^2+x+4;

proc (x) options operator, arrow; x^5-2*x^3-4*x^2+x+4 end proc

(1)

p:= plot(f(x),x=-1..2,color=magenta,thickness=2,tickmarks=[3,3],gridlines= false);

 

with(plots,display);

[display]

(2)

a:=-0.4;b:=2;c:=-1;

-.4

 

2

 

-1

(3)

#f(a)+m*(x-a);

f1:=D(f);

proc (x) options operator, arrow; 5*x^4-6*x^2-8*x+1 end proc

(4)

mtan:=D(f)(a);

3.3680

(5)

tangentline:=plot(f(a)+mtan*(x-a),x=c..b,thickness=2,color=black,gridlines= false):

display({tangentline,p});

 

 

Now a normalline drawing in inflection point tangent line  

mnor:=-1/mtan;

-.2969121140

(6)

mtan*mnor;

-1.000000000

(7)

normalline :=plot(f(a)-mnor*(x-a),x=c..b,thickness=2,color=black,gridlines= false):

 

``

display({tangentline,normalline,p});

 

 

 


Download betounes_ex_set_1_andereaanpak_1_opg_5.mw

First 33 34 35 36 37 38 Page 35 of 38