Ronan

562 Reputation

14 Badges

9 years, 313 days
East Grinstead, United Kingdom

MaplePrimes Activity


These are replies submitted by Ronan

Don't know if this is another variant of the problem but the other night was trying to upload and display a document with a 3D plot and  it just wouldn't happen. 4 attempts. Eventually just gave up on displaying the document to get answer posted. How to plot this complex function? - MaplePrimes 

@acer Yes. that is true. I just left the borders turned on to highlight to bounded area. 

Edit:- I just put the document as a url link on my start page. I don't use it all the time..

   When I first entered you equations mtaylor did not work for i2(x,y). After I saved and restarted Maple to investigate and chech the help, then mtaylor worked.

i2 := (x, y) -> -1/2*I*(exp(x*I)*sin(x)/x - exp(y*I)*sin(y)/y)/(x - y);
i2 := proc (x, y) options operator, arrow; -((1/2)*I)*(exp(I*x)*\

  sin(x)/x-exp(I*y)*sin(y)/y)/(x-y) end proc



mtaylor(i2(x, y), [x, y], 6);
             1   1             1  2   1       1  2
             - + - I (x + y) - - x  - - y x - - y 
             2   3             6      6       6   

                  1    / 3    2        2    3\
                - -- I \x  + x  y + x y  + y /
                  15                          


i3_r := -I*1/2*(i2(y, z) - i2(y, x))/(z - x);
                /    /  1   /exp(I y) sin(y)   exp(I z) sin(z)\
                |    |  - I |--------------- - ---------------|
            1   |1   |  2   \       y                 z       /
i3_r := - ----- |- I |- ---------------------------------------
          z - x \2   \                   y - z                 

     1   /exp(I y) sin(y)   exp(I x) sin(x)\\\
     - I |--------------- - ---------------|||
     2   \       y                 x       /||
   + ---------------------------------------||
                      y - x                 //




mtaylor(i3_r, [x,y,z], 8);
1   1    / 3    2      2        2              2    3    2  
- - -- I \x  + x  y + x  z + x y  + x y z + x z  + y  + y  z
6   90                                                      

        2    3\   1   2   1        1        1   2   1     
   + y z  + z / - -- x  - -- y x - -- z x - -- y  - -- z y
                  30      30       30       30      30    

     1   2   1                   1   4    1     3    1   3  
   - -- z  + -- I (x + y + z) + --- x  + --- y x  + --- x  z
     30      12                 315      315        315     

      1   2  2    1   2        1   2  2    1   3      1     2  
   + --- y  x  + --- x  y z + --- x  z  + --- y  x + --- x y  z
     315         315          315         315        315       

      1       2    1     3    1   4    1     3    1   2  2
   + --- x y z  + --- x z  + --- y  + --- z y  + --- z  y 
     315          315        315      315        315      

      1   3      1   4
   + --- z  y + --- z 
     315        315   


eval( (4), [x = 0, y = 0, z = 0]);
                               1
                               -
                               6

@acer  Works. The saved the default Start.mw into a new folder for templates and theA4.mw. Then made it editable and and added a hyperlink to the A4 format. I then pointed to it under tools-options-open worksheet at startup. Yes I emptied the table. The contents were just for  demonstration. Voted up.

@acer That does what I want. I was just trying to use them as a pair of standalone procedures, that would work together. It can be difficult to precisely ask a question when not knowing the best phrasing to use. "Export" was probably not a great choice.

@acer I used the two above routines in an answer to this question

Determine whether a point with known coordinates is within a given polygon with known verticies - MaplePrimes

As they are inside a package I wrote for myself nobody else has that package. So with(RonanRoutines) ... won't work for anyone else who downloads the document as far as I understand. Am I mistaken here?

@mmcdara Very nice.

@Carl Love I had noticed that too. Is there a way to see the steps simplify takes? Maybe it only uses each euqation once. Years ago when I doing simplification or substitutions into a polynomail along the lines of reducing a 5th order to 4th order I found I had to repetatively use algsubs in a loop to get the order from 5 down to 4. Those equations where huge so one couldnt really follow what was happening. So i am presuming this could be a slightly similar phenomea. 

@Carl Love Very nice. I have now  re-found this data in the help. I had read it  several years ago but at that time did not have an immediate application. Voted up.

Looking at the new application site. I am not a fan of the whole tile turning bule when mousing over it. That is quite distracting and hides what it is. The tiles could be made smaller so more are visible too.

 

OK. Use the green up arrow button and post a copy of your work sheet. Then people can see what you are doing.

@acer  Ahh,  I wasn't at my pc when I posted the answer. My mistake.

@Anthrazit  did you try this op(1,b)<op(1,a) or is( op(1,b)<op(1,a)). That works for me in Maple2021.1 using the Units-Standard package. Yes it's probable a bug.

@Anthrazit This gives a True answer.  This post should really be converted to a question.

if is(op(1, b) < op(1, a)) then
    "True";
else
    "False";
end if

Edit:-
I purposely kept in "is" because it forces evaluation.

if 1 < sqrt(2) then
    "True";
else
    "False";
end if;
Error, cannot determine if this expression is true or false: 1 < 2^(1/2)
if is(1 < sqrt(2)) then
    "True";
else
    "False";
end if;

You can see the problem  by looking at op(A), it has two parts when A is non  zero i.e. value,unit but only one part when A is zero i.e. value.

Try if is(a<b) then "True" else ""False" end if

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