Tom Gettys | 7 Feb 22:18
Picon

animation controls

I sure would like the ability to have the settings for an animation “stick” during the current session.  Even better would be to be able to set the default settings across sessions.  It makes me crazy to have to re-specify the speed, repeat, reverse with every animation.

 

Tom Gettys

2929 Warren Street

Eugene, Oregon97405

(541) 683-1940

http://home.comcast.net/~tpgettys/

 

To dream of the person you would like to be

is to waste the person you are.

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Graph-support mailing list
Graph-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graph-support
Ivan Johansen | 9 Feb 21:02
Picon
Favicon

Re: animation controls

Tom Gettys wrote:
> I sure would like the ability to have the settings for an animation 
> “stick” during the current session.  Even better would be to be able to 
> set the default settings across sessions.  It makes me crazy to have to 
> re-specify the speed, repeat, reverse with every animation.

I have now made Graph remember the repeat and auto reverse settings. It 
will still default to 100% speed, but Frames/second, which is set before 
the animation is created, is now stored in the grf file.

You can find it in the beta version of Graph 4.4 at 
http://padowan.dk/graph/DownloadBeta.php

Best regards
Ivan Johansen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Tom Gettys | 10 Feb 02:37
Picon

Re: animation controls

Very cool - thank you so much!

Tom Gettys
2929 Warren Street
Eugene, Oregon 97405
(541) 683-1940
http://home.comcast.net/~tpgettys/

To dream of the person you would like to be
is to waste the person you are.

-----Original Message-----
From: graph-support-bounces <at> lists.sourceforge.net
[mailto:graph-support-bounces <at> lists.sourceforge.net] On Behalf Of Ivan
Johansen
Sent: Saturday, February 09, 2008 12:02 PM
To: graph-support <at> lists.sourceforge.net
Subject: Re: [Graph-support] animation controls

Tom Gettys wrote:
> I sure would like the ability to have the settings for an animation 
> "stick" during the current session.  Even better would be to be able to 
> set the default settings across sessions.  It makes me crazy to have to 
> re-specify the speed, repeat, reverse with every animation.

I have now made Graph remember the repeat and auto reverse settings. It 
will still default to 100% speed, but Frames/second, which is set before 
the animation is created, is now stored in the grf file.

You can find it in the beta version of Graph 4.4 at 
http://padowan.dk/graph/DownloadBeta.php

Best regards
Ivan Johansen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Graph-support mailing list
Graph-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graph-support

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
zorchan | 10 Feb 09:28
Picon
Favicon

wrong graph for discrete maths

f(x) = ceil(x) + floor( x/2 )

The graph is wrong.

e.g. when x = -2, the graph show f(x) = -2 and -4.  But when you perform manual
calculation, the f(x) should be -3.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Tom Gettys | 10 Feb 16:43
Picon

Re: wrong graph for discrete maths

I agree: as I read the help it says that x <= ceil[x] and floor[x]<=x, so ceil[-2]=-2 and floor[-2/2]=-1, so the sum should be -3.

 

Interesting function!

 

(FYI: Misspelling of 'greater' in floor[x] help)

 

Tom Gettys

2929 Warren Street

Eugene, Oregon97405

(541) 683-1940

http://home.comcast.net/~tpgettys/

 

To dream of the person you would like to be

is to waste the person you are.

 

-----Original Message-----
From: graph-support-bounces <at> lists.sourceforge.net [mailto:graph-support-bounces <at> lists.sourceforge.net] On Behalf Of zorchan
Sent: Sunday, February 10, 2008 12:28 AM
To: graph-support <at> lists.sourceforge.net
Subject: [Graph-support] wrong graph for discrete maths

 

f(x) = ceil(x) + floor( x/2 )

 

The graph is wrong.

 

e.g. when x = -2, the graph show f(x) = -2 and -4.  But when you perform manual

calculation, the f(x) should be -3.

 

 

-------------------------------------------------------------------------

This SF.net email is sponsored by: Microsoft

Defy all challenges. Microsoft(R) Visual Studio 2008.

http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________

Graph-support mailing list

Graph-support <at> lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/graph-support

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Graph-support mailing list
Graph-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graph-support
Ib | 10 Feb 18:17
Picon

Re: wrong graph for discrete maths

Try to calculate f(-2), then f(-2)=-3.
The problem is that f(-1.9999)=-2 and f(-2.0001)=-4, so it is hard to that f(-
2)=-3.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Ivan Johansen | 10 Feb 21:11
Picon
Favicon

Re: wrong graph for discrete maths

Ib wrote:
> Try to calculate f(-2), then f(-2)=-3.
> The problem is that f(-1.9999)=-2 and f(-2.0001)=-4, so it is hard to that f(-
> 2)=-3.

As Ib explains Graph does calculate f(-2) correctly to -3. But when 
plotting a function, Graph evaluates the function for every pixel, and 
none of the pixels are exactly at x=-2.

I am currently looking at an algorithm that should solve this graphing 
problem and show a single pixel at (-2,-3).

Best regards
Ivan Johansen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Tom Gettys | 10 Feb 22:10
Picon

Re: wrong graph for discrete maths

Yikes!  I hadn't appreciated that we were talking about a single point until
after posting my last message.  That you are willing to consider addressing
this is commendable, but clearly there is only so much that can be done to
approximate a function defined at an infinite number of points with a finite
and discrete tool.  Before this particular issue I'd rather see a bigger dot
on the end-point of the floor[x] & ceil[x] graphs to show which end is
included (in case you are looking for things to do - LOL!).

Tom Gettys
2929 Warren Street
Eugene, Oregon 97405
(541) 683-1940
http://home.comcast.net/~tpgettys/

To dream of the person you would like to be
is to waste the person you are.

-----Original Message-----
From: graph-support-bounces <at> lists.sourceforge.net
[mailto:graph-support-bounces <at> lists.sourceforge.net] On Behalf Of Ivan
Johansen
Sent: Sunday, February 10, 2008 12:12 PM
To: graph-support <at> lists.sourceforge.net
Subject: Re: [Graph-support] wrong graph for discrete maths

Ib wrote:
> Try to calculate f(-2), then f(-2)=-3.
> The problem is that f(-1.9999)=-2 and f(-2.0001)=-4, so it is hard to that
f(-
> 2)=-3.

As Ib explains Graph does calculate f(-2) correctly to -3. But when 
plotting a function, Graph evaluates the function for every pixel, and 
none of the pixels are exactly at x=-2.

I am currently looking at an algorithm that should solve this graphing 
problem and show a single pixel at (-2,-3).

Best regards
Ivan Johansen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Graph-support mailing list
Graph-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graph-support

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Ivan Johansen | 10 Feb 23:17
Picon
Favicon

Re: wrong graph for discrete maths

Tom Gettys wrote:
> Yikes!  I hadn't appreciated that we were talking about a single point until
> after posting my last message.  That you are willing to consider addressing
> this is commendable, but clearly there is only so much that can be done to
> approximate a function defined at an infinite number of points with a finite
> and discrete tool.  

It is actually not this specific problem I am trying to solve. But I am 
looking at an algorithm that should make it possible to plot any 
function (actually relation) correctly, and this includes this one.
In short the idea is to evaluate for a range instead of for a specific 
value.

> Before this particular issue I'd rather see a bigger dot
> on the end-point of the floor[x] & ceil[x] graphs to show which end is
> included (in case you are looking for things to do - LOL!).

Well, It is not because I am looking for things to do. I actually have a 
huge list of things. :-)

I am not sure how easy it will be to automatically place such larger 
dots, but currently you will have to place them manually with a point 
series.

Best regards
Ivan Johansen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
zorchan | 11 Feb 04:36
Picon
Favicon

Re: wrong graph for discrete maths

I tried to simulate the problem using Java:

        for ( double x = -5; x <= 5; x = x + 0.1 ) {
            long result = (long) Math.ceil( x ) + (long) Math.floor( x / 2 );
            String xString = String.format( "%.2f", x );
            System.out.println(xString + "," + result);
        }

The result was exactly the same as the wrong graph being generated.  I think the
problem was caused by the x (which is a double).  The problem of using double
was: -2 is not exactly represented as -2.00000000000000000.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane