OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

syntax for evaluating a function over a range (e.g. at end o

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Math
View previous topic :: View next topic  
Author Message
TomRoche
General User
General User


Joined: 01 Sep 2008
Posts: 14

PostPosted: Sat Oct 10, 2009 8:51 pm    Post subject: syntax for evaluating a function over a range (e.g. at end o Reply with quote

When one solves definite integrals, e.g.

Code:
int from{a}to{b} {k dx}


one typically ends by evaluating some expression over the range of integration, e.g.
evaluating kx from a to b. The best syntax I can find for this so far is

Code:
{left none {kx} right lline}^b_a


I'm thinking there should be better--more meaningful, more readable--syntax for evaluating an expression over a range, since this is a pretty common usecase. If so, what's that better syntax?
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Sun Oct 11, 2009 3:30 pm    Post subject: Reply with quote

Would this do?

kx"|"^b_a

David.
Back to top
View user's profile Send private message
TomRoche
General User
General User


Joined: 01 Sep 2008
Posts: 14

PostPosted: Sun Oct 11, 2009 3:52 pm    Post subject: Reply with quote

TomRoche wrote:
Code:
{left none {kx} right lline}^b_a


I'm thinking there should be better--more meaningful, more readable--syntax for evaluating an expression over a range, since this is a pretty common usecase.


David wrote:
kx"|"^b_a


That's more writable but even less readable (IMHO); I'd prefer something like

Code:
evaluate from {a} to {b} {kx}


(where function=kx), which would be congruent with the existing integration syntax. Am I missing something?


Last edited by TomRoche on Sun Oct 11, 2009 6:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Sun Oct 11, 2009 6:23 pm    Post subject: Reply with quote

TomRoche wrote:
I'd prefer something like

Code:
{evaluate from {a} to {b} {kx}


Am I missing something?


I'd prefer to be richer and 50 years younger. I'd prefer to just speak to the thing and it will type everything as it should be. Surely, we must work with the tools we are given, or get other tools or develop our own.

If you think you have viable alternative, then you might consider contacting the program developers. No-one here can do what you want, as we are users just like you.

David.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Math All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group