nm

1265 Reputation

13 Badges

4 years, 224 days

MaplePrimes Activity


These are replies submitted by nm

@vv 

how to put that gray box around the code in your post? I looked at all options and can't seem to see one for source code? Is it in the style or font pull down menu or somewhere else? thanks.

@tomleslie 

nice! I shortened your code a little bit by make your cylinder a proc()

with(plots):  with(plottools):
sph := sphere([0, 0, 0], 10,   color=gold, transparency=0.4):
cyl:=s->display([seq(cylinder([0,0,0], h, s*sqrt(100-h^2), color=red, strips=50),h=0..10, 0.2)], insequence):
display([sph, cyl(1), cyl(-1)],style=surface,lightmodel=light1,axes=none);
 

@Christopher2222 

sorry if my question was not clear. I was learning calling maple function, and found these 4 ways, and I was just wondering if there are variations. I mean in terms of using '' and ` ` that is all.

@Bryon 

Thank you Bryon. I verified all the data is back online now. I do not what happened either. I remember was making a reply to someone, then mapleprime seems to hang for few seconds too longer than normal, at the point it verifies the name one has to enter before clicking submit. Then I noticed all the data gone there for my account after that point.

@umeriqbal 

Why not post plain text Maple code that one can copy and paste? Do not use 2D, as it is confusing. And what does p(m.theta):=... supposed to mean? Are you trying to make a proc() in Maple?

@Preben Alsholm 

thanks. I saw these, but I had no idea that evalf(('AiryAi')(n,z))  means the same as calling different function in `evalf/AiryAi`

I thought what evalf(('AiryAi')(n,z)) meant, is calling AiryAi() and then converting it result to floating point number.   The call and naming convention in Maple is still strange to me.   Since in user code, when one does evalf(foo(x)), this does not call evalf/foo(x)? It calls evalf() with the result of foo(x). Things must be different in Maple own code for some reason.

@acer 

Thanks. I think I understand a little more but need to go over all this many more times. First, yes, I mixed the the backqute `  with the single quote '  there. I do not use Maple much and forgot it was the single ' which delays evaluation not `.

I never knew that "if" was a procedure also.  But what is the advantage of writing

`if`(3<4,foo,bar) ;
       vs

if 3<4 then
   foo;
else
  bar;
fi;

It seems to me this mixture of different styles is not good. One should stick to one way of doing things, so code is consistent. It looks like 2 different languages mixed in one. For example, in the above Maple code I posted, which is from singular() function: showstat(`singular/singular`) :

return `if`(assigned(r),r,{})

Why not write the above as normal code, like this

if assigned(r) then
   return(r);
else
   return({});
fi;

Yes, the first version is much shorter, but I feel that this mixing of using key word as procedure sometimes and as keyword other times make the code harder to follow, as the pattern keeps changing.

@taro 

Indexed variable cause problems. So I was trying to see if I can use __. For example.
with(geom3d):
L:=[[1,2,3],[3,4,5]];
seq(point( a[i], L[i]), i=1..nops(L));

Error, (in unassign/indexed) arguments of type `indexed' must refer to tables or arrays

So I am trying to avoid using indexed variables, as they work sometimes, and sometimes not.  The cat does work, yes
seq(point( a__||i , L[i]), i=1..nops(L));
also this cat
seq(point( a||i , L[i]), i=1..nops(L));
 

"and it prints nothing. What is the problem?"

 

It prints something. It prints

                 0, 0, 0, 0, 1

Maple 2016.1

 

how do you expect someone to copy source code pasted as image? 

@acer 

 

I used showstat(limit) as just an example. I did not want to show my ugly looking Maple code for illustration:)

I did not think it makes any difference? I am just looking for a way to make Maple not wrap long lines. But if you know of way to make it work  only for user code typed and not for showstat() output, then I will be happy with that also.

thank you

@Christopher2222 

Interesting problem. This is how it can be done in Mathematica, fyi

a = {1, 4, 2, 6, 8}
Sort@Select[FromDigits[#] & /@ Rest@Permutations[a, 5], # < 50 &]

    {1, 2, 4, 6, 8, 12, 14, 16, 18, 21, 24, 26, 28, 41, 42, 46, 48}

 

 

<StackExchange sites are strictly Q&A. There's not much room for the back-and-forth discussion that's often needed to reformulate the Question,>

Well, there is actually. If Maple gets its own forum, then there are chat that comes with it. Chat is very popular, where many people can chat on a technical subject or question. Many times if clarification is needed, one goes to chat.  

I am surprised that it is hard to get just 200 people to make a Maple forum. I assumed there are hundreds of thousands of Maple users in the world. (Wolfram claims there are over 3 million Mathematica users for example), so I do not see why is it that hard to get just 200 Maple users to sign up for a Maple forum to be created. 

On adding worksheets: It is not a good idea to do that here or at Stackexchange. Code just always be added as plain text only. This is what happens at stackexchange Mathematica forum for example. No one attaches a notebook there either. And this is best for everyone.

<Once again, anything that you can do to make the look and feel similar to any StackExchange forum would be an improvement.>

Would it not be easier to simply try to make a Maple forum at stackexchange? Similar to Mathematica's?  Which is very nice to use and very popular.

Why try to re-invent the wheel? 

@Carl Love 

" However, here on MaplePrimes, there have been hundreds, perhaps thousands, of Questions about third-order BVPs"

well, may be my google search skill is not that advanced. But after going over 2 full google search pages and not seeing an example, I gave up reading PDF files and pages, without seeing just an example. I was not looking for theory, I just wanted to know what the syntax is, that is all.

I was searching for exact syntax of how to specify B.C. for something other that first derivative, which I know. And that is what I could not find. But if you can find a link to such an example, please feel free to post it.

I do not think a user should spend hrs on google and on different forums searching just to find an example of how to do this. This is something that Maple help pages should have under examples section, just like Mathematica does, which contains many usage examples. I find searching Maple help pages very stressful experience each time I use them.

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