acer

32313 Reputation

29 Badges

19 years, 312 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@mmcdara 

You wrote in your worksheet, "The fact the OP did not wanted the "big red block" was for aesthetic reasons, not to remove a spurious pattern." But that does not necessarily follow from the text and titles of the original Question's and the OP's first response to your Answer. It might be true, but the text from the OP does not imply it.

What was actually given includes, "Im trying to replicate a shape in maple but everytime i plot it i get a big red block of line and i don't know why." and, "How do i remove the big red block i get when using multiple variable piecewise Implicitplot?"

The OP asked how to remove the red block. I gave a way that did that successfully. I know how and why it worked, and I also know why I did not use some particular choices of numeric values for the default; that was not fortune -- I also already knew why some close approaches do not work quite the same, especially (but not only) w.r.t. borders.

I also answered the given question about why the red block happens.

@BekkiRR The .gif file that Maple exports is an animated gif. It plays in most image viewers.

There seems to be some hints about using such in PowerPoint, eg. here.

(Much more involved might be exporting each frame as separate static image files, then using a 3rd party application to combine into some video format...)

@C_R Historically this kind of thing can be related to one or more of several different factors, eg.
- operating system
- video card drivers
- resolution mode
- anti-aliasing (Tools->Options-Font anti-aliasing)
- typesetting level

@BekkiRR 

Dynamisches_Modell_Final_filled_conts_ac.mw

And here is an alternate route,

Dynamisches_Modell_Final_filled_conts_acc.mw

This surface with contours looks less patchy in the actual Maple GUI. And the animation doesn't cycle (unless you use the plotting menu to make that happen).

@BekkiRR 

The following attachment is done in Maple 2021.2.

I was unable to download your worksheet, so I made up my own surface function. If you still cannot get it to work then you could upload and attach your problematic worksheet here, using the green up-arrow in the Mapleprimes editor menu.

Increasing the number of frames is one way to slow down the animation.

anim_ex_2021.mw

@Carl Love I asked above whether the OP wanted a way to inertly represent the operation and later get its value, but without an answer.

@Mike Mc Dermott Sorry, I don't see an attachment.

@Mike Mc Dermott 

Using the main menubar,
   View -> Palettes -> Show Palette
will display the submenu with all the available palettes. Not all are visible by default.

@Mike Mc Dermott What do you mean, explicitly, when you write, "...I would like the simplify function to make use of the parallel operator to simplify an expression such as EQ1 into form of EQ2."?

The expression shown in the image beside "Eq 1" in your Question is not mathematically equal (ie. not any reformulation) of this result which attains from your two lines of code for constructing "EQ2".

`//` := (R1, R2) -> R2*R1/(R1 + R2):

`//`(R1, R2)*`//`(R3, R4);  # EQ 2

R2*R1*R4*R3/((R1+R2)*(R3+R4))

Download EQ2.mw

Could you please show us, explicitly with Maple input code or notation the target form into which you want the expression in the "Eq 1" image to be changed?

When you write, "Is there a way to display the function as a binary operator..." do you only mean to allow it as 2D Input?

Or would you also want some way to display such an infix call in an inert manner as 2D Output (which might also be later hit with value, so as to compute the result)?

Also, I don't understand how your image named Eq1 relates to the result of the two code lines you've given. And I don't understand what you mean by simplification here.

@dharr I am pretty sure that you already know why these 2D Math symbols can act as binary infix operators. But I thought that I'd explain it for the benefit of others.

The reason is that these 2D Math symbols are the rendering of special Maple names which have some key features and consequences:
1) They each are also some HTML (or unicode) entity name
2) As consequence of 1), each of their first characters is &
3) As consequence of 3), Maple allows them to be used as binary infix operators

restart;

 

We can use names beginning with & as infix operators, in general.

`&f` := (a,b) -> a/b:

 

R1 &f R2;

R1/R2

 

We can also do something similar in 2D Input.

`⊓`(R1, R2)

`⊓`(R1, R2)

 

That works as an infix call, because the operator's name is also
that of an HTML entity, and thus fortuitously happens to start
with the & character.

lprint(%)

`⊓`(R1,R2)

 

We can also assign to that special name.

`⊓` := proc (a, b) options operator, arrow; a*b/(a+b) end proc

 

`⊓`(R1, R2)

R2*R1/(R1+R2)

Download neutral_infix_entity.mw

@C_R I'm sorry but I don't understand.

Some of your examples involve generated names like _Zxx which represent integers (possibly with further assumptions, eg. range). Other of your examples involve _Z the special placeholder used by RootOf.

Those are two quite different kinds of thing. The former you could programmatically extract/reformat/replace in returned expressions, as you elect. The latter is key to how RootOf works, and cannot really sensibly be changed.

I am confused as to why they'd be discussed together.

note: I suppose the apparent collision is due in part to mathematical conventions. The "Z" in _Zxx is due to the convention of using the (close) symbol for representing the integers, and the "Z" in _Z relates to the convention of using "z" to represent some complex unknown.

You can programmatically extract and manipulate such names.

As a start...

restart;

S:=[solve({cos(x)*tan(x)/x,x>0},allsolutions)[]];

[{x = (1/2)*Pi+Pi*_Z1}, {x = Pi*_Z2}]

K:=[indets(S,And(suffixed(_),satisfies(hasassumptions)))[]];

[_Z1, _Z2]

aK:=map(getassumptions,K);

[{_Z1::(AndProp(integer, RealRange(0, infinity)))}, {_Z2::(AndProp(integer, RealRange(1, infinity)))}]

op(aK[1][1]);

_Z1, AndProp(integer, RealRange(0, infinity))

lprint(%);

_Z1, AndProp(integer,RealRange(0,infinity))

convert(aK,relation);

[{And(_Z1::integer, 0 <= _Z1, _Z1 <= infinity)}, {And(_Z2::integer, 1 <= _Z2, _Z2 <= infinity)}]

lprint(%);

[{And(_Z1::integer,0 <= _Z1,_Z1 <= infinity)}, {And(_Z2::integer,1 <= _Z2,_Z2
<= infinity)}]

Download prog_assump.mw

Hence you can programmatically manipulate and reformat as you choose.

I've changed your Post into a Question.

Please don't spawn a wholly separate new Question thread for this.

If you have followup details (or highly related queries) then please add them here instead.

First 49 50 51 52 53 54 55 Last Page 51 of 591