Properties
Similar Topics
Statistics
Comments
21
Participants
5
Subscribers
28
Votes
1
Views
2664
Share
How to plot odd and even function together?
Answered
While I tried plotting odd and even function together an error message popped up saying Illegal argument if (1,0).
Could anyone tell why this message came.
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2020 International GeoGebra Institute
please post what you exactly wanted to do, because your message seems a little cryptic.
chris
I really meant to say that I couldn't plot two functions f(x)=2x and f(x)=2x+1 together. While I click the square next to the place where the function is defined, it displays an error message : Illegal argument if (1,0). Is there anyway to see the graph of two functions plotted against each other?
I still don't get the problem.
I adde d a file in which I typed in the input bar 2x, and after that 2x+1, creatig the graphs of the two functions.
And then??
chris
Try calling the second one g(x) not f(x)
I tried that too but still it shows the error message Illegal argument if (1,0).
an attached ggb file and/or a screenshot can be help
are you sure that you are not typing f(x)=x,(1,0)
Yes. I have attached the file. I guess you might have to type f(x),g(x) in the place where it says h(x) is undefined. Now ,when you click on the square next to the input bar you can see that, it displays(I hope) Illegal argument if (1,0).
in your file it's possible to see this code:
but it's not possible to see what you define for the object "h" in the inputbox (before you become the errormessage).
.
please send your complete string, exact and complete as you type in the input box, for the object "h", before you give enter and you become the error message (for example: "h(x)=g(x) + 1,0"). And describe what you want achieved with this input (for example: "a parallel line to g with distance +1 on yAxis")
Note:
after close and reopen the list of past entered commands is empty
To be honest I typed f(x),g(x) in the 3rd input bar and saved the file. However, after I export the file to .ggb and reopen the saved file, it somehow shows h is undefined. Could you tell what I need to do to enclose the 'function definition' in the saved file?
Here's the Complete String : f(x),g(x) (this is how I typed it in the input box)
Now I can reproduce the errormessage. But I can not reproduce the object h(?). This in GGB5.0 and GGB6.0 classic desktop, win10. That mean: in my environment the behavior of GGB is correct. That mean I can not produce a reproducible documentation for a possible bug fix. And without this documentation it's not a bug.
You can do nothing to save a wrong commandline as an object. GGB must refuse this. Otherwise it would be a (documented) bug.
.
But anyway, the command f(x),g(x) is sure wrong. For me (and for GGB) he make no sense.
To give (maybe) a solution for a correct syntax I need your answer for:
what you want achieved with this input? (for example: "show all point when f(x) and g(x) intersect" or "the answer from GGB to the question: is g(x) parallel to f(x)" or "the addition of the 2 functions with the result of a new parallel line to f(x) and g(x)" or "I want see all (wrong or correct) inputs of an user (something like a log)")
I read again your first post:
How to plot (define?) odd and even function together?
(and maybe this is the answer to my question in my last post)
Maybe you mean "together" as
Note: in a list all elements has the same properties (for example color) . So it's can make sense to define separate lists for all odd and all even.
or maybe you are looking for something as in the attachment (with 2 variants).
I opened the attached file but I couldn't understand the graph in the file. I'm trying to plot a relation R : {(x,y): x is an odd integer, and y is an even integer.} Can you help me in plotting this relation.
quote: x is an odd integer, and y is an even integer
this, I think, I have understand, even(x) and odd(x) in the attachment
.
but rel(x,y) (in the attachment) make no sens for me
Maybe you can send a photo from a (manually created) graphic
en un alarde de imaginacion pienso que lo que quiere es algo como Sequence(Sequence((2k, 2j + 1), k, 0, 20), j, 0, 20)
excuse Sequence(Sequence((2k+1, 2j), k, 0, 20), j, 0, 20) for (odd,even)
Sorry for the late reply. Could you tell how to insert this sequence into a function, so I could restrict the domain to odd numbers.
this is not a function. this is a set of points with first coord odd and second coord even
Please tell me why I can't graph this function Sequence((2k+1, 2j), k, 0, 20), while it's possible to graph the function Sequence(Sequence((2k+1, 2j), k, 0, 20), j, 0, 20).
because Sequence((2k+1, 2j), k, 0, 20) has two counters i,j . then it needs values for i and j
perhaps you want Sequence((2k+1, 2k), k, 0, 20) or
Sequence((2k+1, 2k+2), k, 0, 20)
Why it's possible to have two variables(j,k) in a Sequence function, when only one variable is shown in the syntax of Sequence function?
Comments have been locked on this page!