30 Reputation

3 Badges

0 years, 162 days

MaplePrimes Activity

These are replies submitted by segfault



I will wait for someone else to answer.


Your answer is absurd.

Please give someone else a chance to answer please.

You dont understand what I ask. I want to supply 4 orthogonal coordinates. Therefore Maple need to be able to accept arbitrary coordinates in order to accept anything specifiied.

So, for anyone else reading this..

I have a custom set of orthogonal coordinates say

/nu /mu /eta /xi  .

How do you enter them in e.g. Setup(Coordinatesystems = cartesian), by replacing cartesian, so that once I enter metric coefficients, I can have all the related tensors calculated by Maple in my coordinate system.

That is all.


You are unecessarily jumping to conclusions and make accusations.

All I ask is what would replace the trivial

Setup(Coordinatesystems = cartesian)

with an arbitrary coordinate system.

That is all. Problem is well defined with an example.

That is the ONLY information I need and there is no reason to publish the cirrcumference of the universe to be able to get an answer.

Rather give someone else a chance to answer please, as I am not interested in your agression.


I would love to post the worksheet, but it is part of an upcoming publication so it would NOT be a good idea.

I hard coded all my work in differential geometry and now wan to check with built in Maple routines.

Strange that there is seemingly no easy way to define your orthogonal set of coordinates, enter metric components and then use the built in Maple Tensor Calculus.

At the moment hard coding for me is way easier coding Christoffel symbols as arrays and such, and other tensors  than to figure out how to make Maple accept arbitrary orthoginal coordinates.

But it would be nice if I could use Maple's internal functions to check my results.

I will see if I can reduce it to something simple as it seems the Maple Physics package is basically geared towards graduate students and not research. I dont understand why they dont make it general.

@Thomas Dean 
Hi Thomas.

Would have been nice, but as I mentioned exporting creates corrupted files which maple cli program cannot read.
It is really no big deal writing a script and I will try the solution suggested by  @Thomas Dean .


@Thomas Dean 

Thank you very much Thomas

It is great info and I will look into it and test it.
It is either what you suggest or I will have to write my own converter.
No big deal to write the converter, but if someone else already wote a fully debugged converter it is great to try that first.

Much appreciated.

Maple converts the mw file into a non readable text file by maple.

Hardly an hours work to fix that.

It throws so many errors after the conversion.

Then after the conversion the text maple file versions needed to be tested again against the original mw worksheet. Some of these worksheets take 15 days to successfully complete. You can easily end up a half a year verifying just one batch !

I dont know where you get your "hour" from.

It is absurd to make such a claim.

The mw worksheets has been verified and tested. Hand editing them is NOT an option.

All I need to know if there is switches that can do

maple  <switches>

yes or no

If yes please post

if no, ok we move on and close the discussion and I will follow a different path.

@Rouben Rostamian  
Thank you very much for the answer Rouben.

Unfortuinately they are batches of approx 30-60 maple worksheets.

It is not practical to hand edit them to text versions.

Too much testing is needed after every conversion, too risky and not paractical as the worksheets are verified to work as is.

I need a conversion program I can test on a few of the files and then verify only those few.

It seems like I will have to write a bash script to do the conversion myself.

Strange that maple cannot do this properly natively.

@tomleslie  said:

"It is one line with two simple commands.

is better than one line with one simple command"

Yes for my purposes and needs in the worksheet it is better.
My preferred choice of commands  is better as I can see what is loaded in the main worksheet, printed as strings from files, before I commit to execute it.

You just want to argue for no reason whatsoever.

I want no part of it.
Problem is solved.

@tomleslie  tha hard way ????
It is one line with two simple commands.
1. Read the file with readbytes

2. Use the parse command to execute the code.

Sheesh !??

BTW the problem is marked as solved.

What you address is not part of the problem. I dont have a problem with readbytes. It works perfectly.

I also didnt ask for help with readbytes, but how to parse strings in maple when read from file.

Probhlem is solved.

I am currently using readbytes and it works perfectly and I get the entire filecontent as a string.

Readln is insane to use in this case. Just reading line by line is absurd. Why do I have to create aloop for readln and a join function when readbytes does it dor me in one command ?

read just doesnt even work in this case.

Sorry, that is just not right.

readbytes and parse works perfectly and user "parse" solved the problem.

Way better to use readbytes than readln. Else with readline (same as in pascal) I have to write a loop and then join together the results to get the entire file content.
I also cannot use xmaple, as all processes are started from a bash script and all the files run concurrently on 64 cores. So File-Save is moot. So only cli-maple can be used.

Also, the favorite editor thing is for window$.  On Linux emacs e.g. opens anything you throw at it and does not necessarily care about extensions.

Anyway, thanks for the answer, but it was already answered.

Thanks I'll go read up.

Found that the following works

The manual has been pretty useless to me. Very difficult to find trivial basic stuff.
Forum is way more useful.

Thank you very much for the solution


Thank you.

Refreshing to get a straight  answer to the question and not a lot of pretensious snark.

You sure did understand the question.

I will work through your examples and see if I can apply it to my problem.
Very helpful thanks.

1 2 Page 1 of 2