bmartin

Dr. Blake Martin

85 Reputation

5 Badges

3 years, 46 days
Maplesoft
Application Engineer

MaplePrimes Activity


These are replies submitted by bmartin

Hello,

Could you please provide details of what it is you are trying to do? As a note, not every user on MaplePrimes will have access to the document you linked to in your post, it is not from an open-access journal.

@leafgreen 

Another way of getting the result you want would be to do sqrt(2470.0). If you tell Maple that you have a float instead of an integer value, it will automatically calculate the result using floating-point arithmetic. 

Hello,

Are you able to provide more information or some code that you've been working on? This would make it easier for the MaplePrimes community to help you with the question you have.

Hello,

The code you've shared is quite lengthy, making it difficult to follow exactly what you are trying to do. If you are able to isolate the problem you are having to a shorter (preferrrably minimal) amount of code that produces your error, it will be easier for the MaplePrimes community to give you answers.

@Glowing 

Maple has a similar utility with MPL files and are executed using the 'read' command. Here is a link to the Maplesoft online help where this file type is dicussed.

https://www.maplesoft.com/support/help/maple/view.aspx?path=Formats%2FMPL

 

 

@wlferguson19 

Thank you for providing the additional info and giving insight into the problem you are facing. Here are a couple Maple commands that will give you exactly what you are looking for!

s := [cos(t), sin(t)]; # define the position
v := diff(s, t);  # take the derivative to get velocity 
Nl := 30;  # number of lines to draw
plots:-display([seq(plot([op(subs(t=2*Pi*(N/Nl), s+q*~v)), q=-1..1]), N=1..Nl)]);

The last line of Maple code is the idea I had alluded to earlier. Let me try to break it down a bit for you. This chunk of code will create a single plot of the tangent line when t is a given value and varies q from -1 to 1.

plot([op(subs(t=2*Pi*(N/Nl), s+q*~v)), q=-1..1])

Using the 'seq' command, we can create a list of multiple plot structures, each for a different time t using the index N. I made t vary between 0 and 2*Pi. Then using the plots package I displayed all the lines at once. Here is the result:

 

 

 

Page 1 of 1