Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
another issue with MmaToMaple
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Pein  
View profile  
 More options Aug 11 2012, 4:24 am
Newsgroups: comp.soft-sys.math.maple
From: Peter Pein <pet...@dordos.net>
Date: Sat, 11 Aug 2012 10:24:42 +0200
Local: Sat, Aug 11 2012 4:24 am
Subject: another issue with MmaToMaple
sigh...
when i paste the text below into the "Mma input" part of the maplet's
window and click "Translate" then I get a strange message:
Title reads: "Unable to translate" and the message is: "Invalid terms in
product: 1"???

My question is: why is 1 an invalid term in a product?

entering 1*1 gives no error (but there are two terms equal to 1)

TIA,
Peter

P.S: the exact copy of the input:
df[a_?NumericQ, n_Integer] :=
  Block[{n0 = Ceiling[a/Pi],
    ak = (-1)^(#1 + Floor[n/2]) Piecewise[{{Sin, EvenQ[n]}}, Cos][
         a/#]/#^n &},
   Total[N[Array[ak[#, a] &, n0]]] +
    NSum[ak[k, a], {k, n0 + 1, Infinity}]]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Axel Vogt  
View profile  
 More options Aug 11 2012, 9:55 am
Newsgroups: comp.soft-sys.math.maple
From: Axel Vogt <&nore...@axelvogt.de>
Date: Sat, 11 Aug 2012 15:55:44 +0200
Local: Sat, Aug 11 2012 9:55 am
Subject: Re: another issue with MmaToMaple
On 11.08.2012 10:24, Peter Pein wrote:

I am using Maple 15. For simple cases the translator works, but I
never used it for MMA programs (and do not know, which versions or
constructs are covered).

For the above example I get a different reply:

   "(your stuff from above)"; # i.e. entred as string to Maple
   convert(%, FromMma);       # should do the translation

results in

   Error, invalid terms in product: df(`a_?NumericQ`,n_Integer) := 1

When I remove your line breaks (but not caring for blanks),
then I get something different and readable, but nothing
that Maple understands.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »