473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

how to program a curve tracer of mathematical functions

hello
I've been looking for a way to do this for quiet sometime now. well the Idea is (it's not so new!!) that the user gets to enter a mathematical function such as (3x²+ 2x)/(3x + 1) for example. now let me worry about the processing of the function, what I'm asking about is, one I get a table with the (X,Y) coordinates of the points, how can I actually draw the curve and end up with something like this
http://www.mathe-fa.de/fr.plot.png?u...77140.99594621
as I said I've been asking around for some help, and the thing is that everybody just says "you can use the GD library" well I've been through it and I still can't see how I'm going to get even the reference (repère orthonormé). others said that this can be done with some javascripts. would somebody please tell me what to do, or at least name some functions that can actually help
regards
Jul 13 '13 #1
1 1083
Dormilich
8,658 Expert Mod 8TB
if you’d use GD, you need to draw the image piece by piece yourself (e.g. through imageline()), though the overall process also includes creating the image resource and some more steps.

In JS it is a little bit simpler, but still you need to (manually) draw the lines on the canvas.
Jul 14 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Thomas Lumley | last post by:
What does the standard guarantee about the accuracy of eg the trigonometric functions? There is obviously an implementation-dependent upper bound on the accuracy, since the answer is stored in a...
110
by: Gregory Pietsch | last post by:
I'm writing a portable implementation of the C standard library for http://www.clc-wiki.net and I was wondering if someone could check the functions in math.h for sanity/portability/whatever. I'm...
3
by: bxstylez | last post by:
rewrite this program (sum,average) using functions, possibly arrays? #include<stdlib.h> #include<stdio.h> main() { FILE *finpt, *foutpt;
3
by: AZRebelCowgirl73 | last post by:
can anyone help me I cant get this program to run, it errors during bugging! I thought I was pretty close to having it, but I can't get it! thanks! //C++ Project 3: //For your Project 3...
5
by: wishbone34 | last post by:
I've gotten help writing out these functions, and i know what they each do individually, but i can't figure out where to start in my main program, i want to enter a string of numbers and...
6
by: trungthanh78 | last post by:
Hello everyone, I'm totally new to the group and I would like to learn from you. Thank you in advance! I need to write a program to track whether a mathematical function has changed during...
7
by: desktop | last post by:
I have written two different insert functions in a C++ program and would like to test the difference in performance. Can you recommend any benchmarking software for C++ functions that can do...
13
by: jacek.strzelczyk | last post by:
Hello, I'm looking for a C library that provides the notation of n- dimensional mathematical functions. Or is there any other way to decode that kind of functions in C language? Thanks in...
9
by: 16800960 | last post by:
Here is the code for my program // Book Price (16800960) #include <iostream> #include <string> #include <iomanip> const int MAXSIZE 300;
2
by: yolandre rukweza | last post by:
a movie operator requires a simple program that will assist him in analyzing movie details. he requires a program that will accept movie details, display details and determine all movies whose actor...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.