Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to draw a piecewise function in graph.tk #50

Open
chixg opened this issue Feb 26, 2012 · 6 comments
Open

how to draw a piecewise function in graph.tk #50

chixg opened this issue Feb 26, 2012 · 6 comments

Comments

@chixg
Copy link

chixg commented Feb 26, 2012

seems piecewise function is not supported yet , have a plan ?

@aantthony
Copy link
Owner

Nope. How would something like

"y = (x>3) ? x : x^2" be? That would translate to
----/ x, if x>3
y=-\ x^2

@chixg
Copy link
Author

chixg commented Feb 26, 2012

example:

y =
x ( x > =0 )
-x ( x < 0 )

@chixg
Copy link
Author

chixg commented Feb 26, 2012

how to use "if" ?
copy "x, if x>3 y=-\ x^2 " only "-\ x^2" works

@aantthony
Copy link
Owner

What works?

Also, I think another way to specify it could be:

"y = x \and x>3 \union y=x^2 \and x <= 3"

@chixg
Copy link
Author

chixg commented Feb 26, 2012

Sorry , I still can't catch your idea..

when copy "y = x \and x>3 \union y=x^2 \and x <= 3" to http://graph.tk/ console, "Too many '='s" is the result.

any help doc is available ?

@aantthony
Copy link
Owner

Oh. When I said "y = x \and x>3 \union y=x^2 \and x <= 3" I was speculating that in the future that could be a possible way to use such a feature. Piecewise functions are not supported yet, so it is not possible now.

There are no help docs yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants