Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
a weird problem with trip.
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
  3 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 will appear after it is approved by moderators
 
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
 
laya  
View profile  
 More options May 19 2011, 5:30 am
From: laya <laya.golc...@gmail.com>
Date: Thu, 19 May 2011 02:30:41 -0700 (PDT)
Local: Thurs, May 19 2011 5:30 am
Subject: a weird problem with trip.
I've started using TRIP just today, my operating system is linux:
ubuntu,
I created a simple .t file to test TRIP's abilities as follows:
  x=-pi,pi,pi/108;
 y=sin(x);
 vnumR Imy;
 resize(Imy,217,0)
 ff=file_fullname("test-data.txt");
 write(ff,"%20.15E  %12.8E\n",y,Imy);
 naf(216,ff,naft1,pi/108,-pi,1,2);

when I ran it this message was shown:

> include("naff-test1.t");

TRIP[ 5 ] :  Syntax error
        Command  :'  ff=file_fullname("test-data.txt");'
                     ^^
        at line 5 in file '/home/golchin/naff/trip/naff-test1.t'

the weird is that, when I just copy and pasted the command in the
shell nothing was wrong with it:

 >ff=file_fullname("test-data.txt");
ff  = file name 'test-data.txt'


do any body have an explanation for this?

 
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.
Mickael Gastineau  
View profile  
 More options May 19 2011, 5:40 am
From: Mickael Gastineau <gastin...@imcce.fr>
Date: Thu, 19 May 2011 02:40:02 -0700 (PDT)
Local: Thurs, May 19 2011 5:40 am
Subject: Re: a weird problem with trip.
You omit to add a semi-column on this line : resize(Imy,217,0)
And you forget to add the number of terms in the naf command. (here I
set 10 terms).

So the script becomes :

 x=-pi,pi,pi/108;
 y=sin(x);
 vnumR Imy;
 resize(Imy,217,0);
 ff=file_fullname("test-data.txt");
 write(ff,"%20.15E  %12.8E\n",y,Imy);
 _naf_nulin=0;
 naf(216,ff,naft1,pi/108,-pi,10, 1,2);

A better way is use the naftab command when numernical vectors are
already existing.

Mickaël

On May 19, 11:30 am, laya <laya.golc...@gmail.com> wrote:


 
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.
laya  
View profile  
 More options May 19 2011, 6:07 am
From: laya <laya.golc...@gmail.com>
Date: Thu, 19 May 2011 03:07:59 -0700 (PDT)
Local: Thurs, May 19 2011 6:07 am
Subject: Re: a weird problem with trip.
thanks, it's very kind of you you answered me so fast.
On May 19, 1:40 pm, Mickael Gastineau <gastin...@imcce.fr> wrote:


 
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 »