mmcdara

2684 Reputation

14 Badges

5 years, 107 days

MaplePrimes Activity


These are replies submitted by mmcdara

@tomleslie 

Two mistakes:

  1. the plot of f(x-1) is not obtained with 
    f3:=transform( (x,y)->[x-1, y]):
    display(f3(p1))

    but with

    f3:=transform( (x,y)->[x+1, y]):
    display(f3(p1))
    
  2. the the plot of f(2*x) is not obtained with 

    f4:=transform( (x,y)->[2*x, y]):
    display(f4(p1))

    but with

    f4:=transform( (x,y)->[x/2, y]):
    display(f4(p1))


DB.mw

 

@acer 

This is related to this question I posted recently 232797-How-To-Find-The-Maximum-Value-Of-This-Function
In order for someone to answer it, it was necessary for me to provide several elements that constitute a part of the m-file generated by the calculation code that I develop.
So its really about an attachment on a Mapleprimes posting.

@Joe Riel 

thanks Joel

@acer 

Of course! Where was my head?

The funny thing (?) is that I first wrote

# The location of the extrema of f (g) verifies diff(f(x),x)=0
# (diff(g(x)=0);

solve~([diff(f(x), x) , diff(g(x), x)], x);
extr__x := %[1];

# equate these values 

extr__p := solve(%[1]=%[2], p);


and then I stupidly simplified this into what I wrote in my answer.

I won't edit my answer (mistake done and well done), the OP will use your correction.
Thanks.

@tomleslie 

Maybe your example is too simple to reveal potential differences.
Look at this one (could it be something like this that puzzles @abdulganiy?)

  restart:

#
# Use contourplot(). Note that by setting contours=[0]
# the command should return (all) contours on which
# sin(x*y)=0
#
  plots:-contourplot( 1/sin(x*y),
                      x = -Pi..Pi,
                      y = -Pi..Pi,
                      contours=[0],
                      color=blue,
                      gridlines=false,
                      axes=boxed,
                      grid=[600$2]
                    );

 

#
# Use implicitplot() on the same expression. Note
# that since one is plotting an expression rather
# than an equation, Maple will *assume* that one
# wants to plot solution curves of the equation
# sin(x*y)=0 - which ought to be the same as the
# contourplot above
#
  plots:-implicitplot( 1/sin(x*y),
                       x = -Pi..Pi,
                       y = -Pi..Pi,
                       color=blue,
                       gridlines=false,
                       axes=boxed,
                       gridrefine=4  # or higher
                     );

 

 

 


 

Download impCon2_mmcdara.mw

@acer 

I just answered the question "simplifying a specific trig equality" nothing more

@acer 

In this case

assuming R::positive,z>R

is enough (at least with Maple 2015).
But I agree that Maple is not always able to deduce the assumptions it needs from those provided.

@MapleUser2017 

I'm sorry not to be able to help you more.
You will have to wait for an answer from someone more experienced in these issues, I hope for you that it will not take too long.
Good luck

@tomleslie 

Impressive work, although I think it's a lot of wasted time to satisfy whims :-)
Nevertheless I vote up

@acer 

Thanks acer, I am going to figure out what I can do with this.
I'm not  used to Plot Component but I think it's an option I can get by with

@Stretto 

A new version of my first file
Animated_path_along_a_tree_V2.mw

 

 

@tomleslie 

`Sorry for my mistaje.

PS: I like the way you did it with geom3d

@vv @tomleslie

S... you are right

thousand apologies to  @yangtheary ​​​​​​​

 @Stretto

A variant of my last procedure where vertices and edges are highlighted and whose color is made persistent or not
Variant_1.mw

@one man 

Thanks.

1 2 3 4 5 6 7 Last Page 1 of 76