Math.log draw graphic question

Hello

I am trying to generate a graph to represent exponential function y = loga x that uses the basic y = log10 function x. I generated successfully y = ax , but even using this as the reverse does not work.

It's the old code that I'm editing, and most of the math is done in the class files.

But basically, draw the curve and points, I use:

for (i = 0; i < =(xMax-xMin) /dx; i ++)

{

myX = xMin + i * dx;

If (type == 1)

{

myY = Math.pow (a * myX + b, 2) + c;

}

If (type == 2)

{

myY = a * Math.pow (myX, 2) + b * myX + c;

myY = (myX - b) *(myX-c);

}

If (type is 3)

{

myY = a * (Math.pow (myX + b, 2)) + c;

myY = a * (Math.pow (myX - b, 2)) + c;

}

SH 09SEPT2014

if(type == 4)

{

myY = a * Math.exp (myX);

}

if(type == 5)

{

myY = myX * Math.log (a);

}

//***********************

If ((myY > = yMin) and (myY < = yMax))

{

Data [j] = new Array;

[J] = data [myX, myY];

j = j + 1;

} Else if (j > 0) {}

If (<>[0] [j-1] undefined data)

{

Data [j] = new Array;

Data [j] = [defined, undefined];

j = j + 1;

}

}

myY = myX * Math.log (a);

bad air.  If that is supposed to be y = loga x, it should be

myY=Math.log(myX)/Math.log(a);

Tags: Adobe Animate

Similar Questions

  • Satellite C660-22V - dedicated memory graphic question

    Hello

    I would like to know if it is provided on the model of Satellite C660-22V power added module memory ram wifi blutooth and more particularly to a graphic chipset dedicated.

    I ask this question because I am unable to run to download my 'work' was known 3D Lightwave 9.6 of NewTek ('_') and fusion 6.1 of eyeon software.
    evryones be dongled.

    It seems that these two programs is the dedicated requires memory.
    Thanks for the help...

    To be honest, your post is a little confusing.
    The laptop seems to support the Intel HM55 HD graphics chip and a part of the main memory would be shared by the graphics chip too.
    This info is helpful?

  • B5400 Intel HD 4600 Graphics questions.

    About 2 months ago, my graphics began to act, decide randomly crash and graphic access block application. It is said expressly:

    "Display driver stopped responding and has recovered.
    "Intel HD Graphics display driver drivers for Windows (r) stopped responding and has successfully recovered".

    everything twice in quick succession followed by another message:

    "The request has been blocked access to the graphics hardware.
    .Exe application has been blocked from access to the graphics hardware.

    This problem several video games and media players. I tried to download the updated drivers, but he seems to have made things worse with accidents that occur much more frequently even does not happen when I watch the video on a Media Player (initially it does that games and 3D applications). However, the Lenovo solution center software says that everything goes well on his tests.

    With the help of a laptop Lenovo B5400, Intel HD 4600 graphics card.

    I just wanted to post an update, incase someone gets the same question. Finally, it was indeed a problem Windows 10, although I have no idea what exactly about it was the issue, not was not pilot since resettlement did not help (even tried several versions). Formatting and installation of Win8.1 fixed the problem, have not had any problems for 5 days and same test of stress on the GPU without problem.

  • Update the Bios HP pav15 and switchable graphics question

    Hello

    My laptop: HP Pavilion 15 e-015tx ( click here for the form )

    I have 2 questions:

    (1) is it safe update my BIOS to sp64571.exe [VersionF.15] ( click here for info from the bios )?  A lot of people complaint about BIOS problem, so I want experts and users view their points of view.

    (2) the laptop comes with switchable graphics Intel 4series + AMD Radeon 8670 M graphics. Like everyone else, I am facing problem with switching. Yes, there is an update available on the AMD web or on the HP Web page? The BIOS will correct this problem?

    Thank you. Please come back to this,

    Hi Prabhat_Gupta. The BIOS updates are useful if necessary, but not always recommended if things work very well. The update itself may or may not solve difficulties you encounter with switchable graphics. What questions are you know and what you tried?

  • Set the name of a Visible plot and color lines draw graphic legend of XY

    Hi all

    Updated 20 plots data on that and I'm initializing the XY graph with 20 plots.

    After update of data, I do draw 3 to invisible, now I need to trace the legend to organize such that he should have, plot 0, plot1, plot2, plot4, plot 5... plot19, in the legend of his plot and should not have Plot3.

    So while graphic print and consult the chart in pdf format, I can see field only for Visible names draw in the legend of the plot and can avoid the confusion of having plot3 in my graphic impression. (Given that this parcel is invisible and data used pot in chart 3 and so I do not have this as my as well catalogue)

    Is there are ways of achieving them, please send your suggestions.

    Thank you

    Stéphane

    You can set the colors of the plot, point style, etc. by program like I did with the name of the parcel. The colors are just an extension of the notion that I have used with the array of names.

  • Graphics Question?

    I had a computer hp laptop pavilion dv6-6115tx, in the Device Manager I see 2 display adapters.

    -Mobile Intel HD Graphics

    -AMD Radeon HD 6490 m

    and two of them are activated.

    My question is that I still see the graphics card Mobile Intel used in the games that I play but not AMD? or is there a possibility that both are used at the same time?

    My other question is HP support assistant is watch about 2800 MB memory graphics but laptop specs is 1 GB memory gddr5 [AMD].

    Anyone can clear my doubt please?

    Windows 7 64 bit

    Memory DDR3 4BG

    Hello

    The two adapters are not used at the same time.

    There is a bios update available here that will give you the option to activate "Fixed Mode", which will force the laptop to use the adapter rather than the chip Intel AMD - after you apply the update to the bios option is in tab of System Configuration of your Bios Menu (to access your bios menu ", type away at f10 when you start the laptop).

    The figure of 1 GB gddr5 refers to the amount of memory 'on board' for the AMD adapter (ie the physical memory on the AMD Chip) - the total memory available for the graphics card (2.8 GB) is the amount of memory 'on board' and the amount of Ram available to the adapter, but in reality it is only rarely available.

    Kind regards

    DP - K

  • Windows Vista Server Log-on the question

    When I try to log on to a file server, I get the user name and password window. My computer Windows Vista keeps adding the name of account before the user name when I click the OK button to open a session. Of course, it then then tells me I have the wrong user name or password. Anyone know how I can disable this function?

    Hi Dave,.

    Since your question involves the use of the file server please join the TechNet community for assistance. They specialize in THIS type of environment Pro and will be better suited to help you.

    TechNet community

    http://social.technet.Microsoft.com/forums/en/itprovistanetworking/threads

  • OBIEE Bar graphic question

    Hello everyone,

    I want to ask a question about the graphics bar in obiee. How can I change the position of the sign on the right side down?

    Kind regards

    graph.jpg

    Hello

    Go to the properties of the graph-> General-> legend-> top

    Thank you

    Prasanna

  • Draw point question

    I try to make a few points of coding. But the width of 1px is function to the edge.

    Even I try to pull some position ten times.

    This is my code:

    private void createPoint(radio:Number=1,_rep:int=10):Shape {}

    var s:Shape = new Shape();

    var i: int = rep;

    While (i-> 0) {}

    s.graphics.beginFill (0, 1);

    s.graphics.drawRect (0,0, radio, radio);

    s.graphics.endFill ();

    }

    return s;

    }

    My points mypoint.png I try to draw the points like thatpoint.png

    The dotted lines are better drawn with BitmapData. The following example draws dotted 100 px wide when the drawLine method is called:

    private function drawLine():void {
         var line:Sprite = new Sprite();
         with (line.graphics) {
              lineStyle(1, 0);
              lineBitmapStyle(dotBMD(0xFF0000), null, true);
              moveTo(0, 0);
              lineTo(200, 0);
         }
         addChild(line);
         line.x = line.y = 100;
    }
    
    private function dotBMD(color:uint):BitmapData {
         var dot:Sprite = new Sprite();
         with (dot.graphics) {
              beginFill(color);
              drawRect(0, 0, 1, 1);
              beginFill(color, 0);
              drawRect(1, 1, 1, 1);
              endFill();
         }
         // get BitmapData
         var dotsBMD:BitmapData = new BitmapData(2, 1);
         dotsBMD.draw(dot);
         return dotsBMD;
    }
    
  • Satellite Pro A300D-140 - graphic question

    Hi all

    I wonder if someone can help me. I'm having a lot of problems with my new laptop at the moment, and I'm now about to re - format and reinstall Windows.
    The question is this: when you browse the Web site with pictures or embedded videos, display struggles to scroll to the bottom and is very 'jerky' and slow. This happens in two & Firefox Internet Explorer.
    Its not just web browsers that have the problem, Word, Excel etc. all I have this problem. I produce a lot of documents and sometimes necessary, scroll through them - and performance when you scroll is a joke!

    I contacted ATI and they have washed their hands of this issue and refuse to do something.
    I tried the latest drivers, the drivers supplied with the laptop, restored to the latest drivers, made an update of the BIOS, chipset update firmware, update driver processor etc... and nothing has worked! Have really no idea on how to move forward from this.

    Any ideas / suggestions would be greatly appreciated - or if someone needs additional information, I'll check this thread.

    I am running Windows XP Pro SP3

    Thank you
    Dan Smith

    I don't know if my advice can help, but you have the problem with the operating system preinstalled Toshiba?

    You tried the latest drivers from Toshiba Web site or other sites?

    As far as I know that the Satellite Pro A300D has Vista as an operating system. If you need to reinstall the operating system from the Toshiba recovery disc. There are all pilots understand.

  • HP-P6-2133W graphic questions.

    Well first of all... It has an APU which is supposed to be able to use double graphics, right? If I were to add a video card, the GPU of the APU shouldn't continue to work alongside the video card?

    So, activate it using the tool of Vision from AMD?

    Whats intrigued me is that my motherboard, "AAHD3-HB" under specifications HP says, "integrated graphics subsystem is not available if a graphics card is installed."

    [Source]

    http://support.HP.com/us-en/document/c02967715

    I hope this isn't the case because it would go against the whole purpose of me having an APU, so me to have this desktop computer.

    While I am too... This computer is new, all HP power supplies are a good bit of noise? It happens during his treatment because I see him indicter blink by the CD player.

    Hello

    Excellent video! You should be able to tell which card video from the link I posted that will operate in dual graphics mode. Any different video card then disables the graphic edge.  It is my understanding of how dual graphics mode circuit.

    So, if you were to install a top end AMD Radeon graphics like the 6870 then edge graphics processor would be disabled.  HP could add some verbiage in order to dispel it.

    The AMD HD 6670 would be 'double' superior graphics card for A6 or A8 processor.

  • Satellite P100-324 - graphic question

    Satellite P100-324
    All native driver, from a site of the manufacturer.
    Intel (R) Core (TM) T7400 @2 2CPU. 216 GHz - driver 5.1.2600.0
    GeForce Go 7900 GS - 8.4.0.0 driver
    BIOS it is updated to the latest version - v4.70
    Windoows - license

    The computer, early toys (including,
    Earlier, who played without problem) leaves it to restart.
    On reboot, instead of it is under abnormal conditions, disconnected,.

    As to the inclusion suggests not to choose a mode of loading, in the magazine of the events of records is not present, in the folder Minidump are absent.
    Work in graphical editors (paint, SketchUP) causes no problems.

    Video as movies will transport, may restart several times and can show a film completely.
    A video by Everest and SiSoftware Sandra card test do does not have programs, both restarts.
    PowerStrip, everything is Ok!
    Temperature limits of standard throughout the long work of the computer:
    ACPI thermal Zone - 58 ° C
    CPU - 1.06 pressure V

    The processor
    Intel Core 2 Duo Mobile (1 Core)-55 ° C
    Intel Core 2 Duo Mobile (Core 2) - 57 ° C

    NVIDIA. GeForce Go 7900 GS
    The temperature of the GPU - 56 ° C
    Ambient GPU - 52 ° C

    Hard drive FUJITSU MHV2200 38 ° C

    For 2-3 days, the situation has changed a bit.
    The viewing of movies (in 30-40 minutes), it is disconnected from the screen, starts to interrupt a sound.
    And then restart the computer follows.

    What or actions has not undertaken, that I do not understand, what exactly are the astable causes of computer work.

    You use Windows XP or Windows Vista?

    You have installed the display on the Toshiba site driver?

    Do you see a graphical corruption on the screen?

    Do you see a BSOD (blue screen error)? Check the event viewer in Control Panel-> administrative tools

  • Intel Graphics questions?

    On my task bar I got a red flag which shows the stakes, mine said 'Intel graphics driver has stopped working (1) time' which could cause this problem and how I could solve it. I click on it for a solution, but there are no results. What would cause for me to get a message indicating the graphic driver Intel has stopped working (1 time) and how can I solve this problem?

    "It is not a true crash, in the sense that the blue screen was launched only because the combination of material and video driver video was to be insensitive and not because of any exception processing synchronous".

    Since Vista, the components of "Timeout detection and recovery" (TDR) of the subsystem video OS have been able to do some really impressive things to try to find issues that would have led to the earlier OS like XP to crash.

    As a last resort, the TDR subsystem sends a video driver command "Please restart you now!" and wait a few seconds.

    If there is no answer, the BONE concludes that the combo of driver/hardware video has really collapsed in a heap, and it fires at this stop 0 x 116 BSOD.

    If playing with video driver versions did not help, make sure that the box is not overheated.

    Try to remove a side panel and a fan of big sector directly to the motherboard and GPU.

    Run it like that for a few hours or days - long enough to check whether the cooler temperatures make a difference.

    If so, it could be as simple as dust accumulation and inadequate cooling afterwards.

    I download cpu - z and gpu - z (both free) and keep an eye on the video time
    [/ quote]

  • Several colors of background on a GOLD-table fill to draw graphical point * behind * the grid lines

    I have some a matter of aesthetics.

    I wrote a program that displays data for binary files. These binaries have blocks of data, an hour or two. Each piece is a playback window, and there are a handful of reading windows per day.

    The data view is in effect, what I'm working on now is a more intuitive way to choose what data should be displayed.

    My goal is to have a graph of waveform with the X axis represents a day full (0 - hr 24 hr) and is indicated on the chart what time windows are available for review, that is, data have been collected. The background of a "collected" window will be yellow (or another color), while times in the course of which no given is collected will be black. The user will then drag the sliders to select the window of what he or she wants to see the data.

    It was quite easy to achieve by drawing the curve a digital signal (1 for data collected during this period, 0 for no) and point-fill with yellow to zero. My only problem with this solution is that filling point appears on the lines of the grid, that does not look quite right.

    Y at - it an easy way to get the grid to appear at the top of the charts, or is there a way to programmatically set multiple background colors (it could do the same thing)?

    Use the property "draw pictures" and draw your own grid before image.

  • System.Drawing.Graphics


    Just out of curiosity, what should you do with this class in terms of design? The LabVIEW <-->.NET interface is not known for his speed, then you can consider using the native drawing tools in LabVIEW.

Maybe you are looking for