Skip to main content

AI can be suitable assitent for the R&D process.


AI like Bing and ChatGPT are ultimate tools. If the person asks then how to make a database connection or GUI with the C-language the AI answers immediately. The AI makes the code that the programmer can copypaste to the programming environment, and then they must just know the name of the connected database. 

That thing will decrease the work that must be done for working applications. And in business life is money. This means programming is easy and fun by using the AI -assistant. And that assistant can use by using own cell phone. The free-use AI assistants can give multiple pieces of advice about many things. And that makes the AI an extremely powerful tool. 

There are images of the aircraft and hypersonic aircraft concepts created by the AI. So those things might not exist in real life. The AI-based drawing tool like Dall-E can be a revolution for R&D workers. They might use the Dall-E to make outlines. That they see what they should do in their projects. 

But if the AI will get access to flow simulations, wind tunnel data, and CAD programs. There is the possibility. In the future, the user can say, "Make me the plans for a fully functioning aircraft model. The AI can select the materials, and fuel, and make the parts list that creators must use. 




The orders were: 


Draw me a hypersonic aircraft

Add some weapons to it (That was one of the model suggestions, that Bing gave). 


This is a conversation I had with Bing AI about C programming and database connection. 


The links are not working in the copypaste. But in the original Bing output, the links went to the right homepages. Below those C-codes. You can find the conversation that I had with Bing AI about the hypersonic flight.

Questions made by me. And answers are from Bing. The answers are copypaste from Bing. And that shows how powerful a tool it is. If some freeware tool can make this, what the commercial systems can make? The links are not working in the copypaste. But in the original Bing output, the links went to the right homepages. 


Q: How to make a connection between the database and C-program


A: To connect to a database with a C program, you need to use a data access library that supports the database you are using. For example, if you are using MySQL, you can use the MySQL Connector/C library1. If you are using SQL Server or Azure SQL Database, you can use the SQLAPI++ library2. If you are using Oracle, you can use the Oracle C++ Call Interface (OCCI) library3.


The general steps to connect to a database with a C program are:


Include the header files of the data access library in your code.

Declare and initialize a connection object with the database parameters (such as host, user, password, etc.).

Use the connection object to connect to the database and check for errors.

Use the connection object to execute SQL queries and retrieve results.

Use the connection object to disconnect from the database and free resources.

Here is an example of connecting to a MySQL database with C using the MySQL Connector/C library:


#include <stdio.h>

#include <mysql.h>


int main()

{

    // Declare a connection object

    MYSQL *conn;


    // Initialize the connection object

    conn = mysql_init(NULL);


    // Check if initialization succeeded

    if (conn == NULL)

    {

        printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));

        exit(1);

    }


    // Connect to the database

    if (mysql_real_connect(conn, "localhost", "user", "password", "database", 0, NULL, 0) == NULL)

    {

        printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));

        exit(1);

    }


    printf("Connected to MySQL\n");


    // Execute a SQL query

    if (mysql_query(conn, "SELECT * FROM table"))

    {

        printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));

        exit(1);

    }


    // Get the result set

    MYSQL_RES *result = mysql_store_result(conn);


    // Check if result set is valid

    if (result == NULL)

    {

        printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));

        exit(1);

    }


    // Get the number of rows and columns in the result set

    int num_rows = mysql_num_rows(result);

    int num_fields = mysql_num_fields(result);


    printf("Number of rows: %d\n", num_rows);

    printf("Number of columns: %d\n", num_fields);


    // Loop through the result set and print each row

    MYSQL_ROW row;

    while ((row = mysql_fetch_row(result)))

    {

        for (int i = 0; i < num_fields; i++)

        {

            printf("%s\t", row[i] ? row[i] : "NULL");

        }

        printf("\n");

    }


    // Free the result set

    mysql_free_result(result);


    // Disconnect from the database

    mysql_close(conn);


    printf("Disconnected from MySQL\n");


    return 0;

}

More info on

1. stackoverflow.com

2. learn.microsoft.com

3. geeksforgeeks.org


This is a conversation I had with Bing AI about hypersonic flight. 


Q: What is the best fuel for hypersonic aircraft


A:  According to some sources12, hydrogen has been the fuel of choice for hypersonic flight because of its rapid burning rate, high specific energy content, and good heat transfer properties for active cooling and recuperation. However, some researchers are also exploring the use of endothermic hydrocarbon fuels that can absorb heat via chemical reactions and double as a coolant3.


More info on


1. researchgate.net

2. arc.aiaa.org

3. cen.acs.org


Q: What is the best material for hypersonic aircraft?


There is no single best material for hypersonic aircraft, as different parts of the vehicle may require different materials and structures to withstand the high aerodynamic heating and thermal stresses. Some of the materials and structures that have been proposed or developed for hypersonic vehicles include:

Thermal protection systems (TPS): These are materials that insulate the vehicle from the high temperatures generated by air friction. They can be classified into passive or active TPS. Passive TPS are materials that either ablate (erode away) or radiate heat to the environment, such as carbon phenolic composites or ceramic tiles. Active TPS are materials that use cooling fluids or endothermic fuels to remove heat from the surface, such as metallic heat pipes or transpiration cooling1.

Hot structures: These are materials that can operate at high temperatures without insulation or cooling, such as metallic alloys or ceramic matrix composites (CMC). Hot structures can reduce the weight and complexity of the vehicle, but they also require high strength, toughness, and thermal stability2.

Ultra-high temperature ceramics (UHTC): These are materials that can withstand temperatures above 2000°C, such as zirconium diboride (ZrB2) or hafnium diboride (HfB2). UHTC can be used for leading edges, nose tips, or other critical parts of the vehicle that experience the highest heating. UHTC can also provide oxidation resistance and ablation resistance in oxygen-rich environments3.


More info on


1. ntrs.nasa.gov

2. arc.aiaa.org

3. link.springer.com


This is a very fast and quite accurate method to use AI for making texts and giving sources for that kind of thing. So AI is the next-generation tool for helping the R&D process. 


Comments

Popular posts from this blog

Schrödinger's cat: and the limits of that idea.

"In quantum mechanics, Schrödinger's cat is a thought experiment concerning quantum superposition". (Wikipedia, Schrödinger's cat). But the same thing can use as model for many other thought experiments.  Sooner or later, or at least in the ultimate end of the universe, the Schrödinger's cat will turn into wave movement. The information that this cat involved exists but the cat does not exist in its material form. The information doesn't ever vanish. It just turns its shape.  We are all trapped in the universe and time. The universe is the space that is entirety to us. There are no confirmed other universities. But the multiverse is a logical continuum for the expanding galactic megastructures.  The problem with natural things is this. They are black and white. They exist or do not exist. Could there be something, that exists and not exists at the same time?  Scrödinger's cat is thinking experiment about case their cat is not dead or not alive. But in this...

The string theory offers a new way to calculate Pi.

"Scientists discovered a new series for pi through string theory research, echoing a 15th-century formula by Madhava. By combining Euler-Beta Functions and Feynman Diagrams, they modeled particle interactions efficiently. Credit: SciTechDaily.com" (ScitechDaily, String Theory Unravels New Pi Formula: A Quantum Leap in Mathematics) People normally think that. The pi is the ratio of the circumference circle's circumference to the circle's diameter. The Pi is a mathematical constant 3.14159..., the endless decimal number. The Pi is interesting because developers can use that decimal number to make the encryption algorithms stronger.  The idea is that the encryptions program hides the message's original ASCII numbers by multiplicating those numbers with some decimal number. Or the system can add some numbers to those ASCII numbers.  "Aninda Sinha (left) and Arnab Saha (right). Credit: Manu Y" (ScitechDaily, String Theory Unravels New Pi Formula: A Quantum Le...

There are always more than three actors in the real world.

"An international research team is advancing precision timekeeping by developing a nuclear clock using thorium isotopes and innovative laser methods, potentially transforming our understanding of physical constants and dark matter. (Artist’s concept.) Credit: SciTechDaily.com" (ScitechDaily, Unveiling the Thorium Nuclear Clock and Its Time-Twisting Secrets) From Three-body problem... There are no pure three-body systems in nature. There are always more than three components in the system. For making real three-body systems we must separate those three bodies from the environment. Otherwise, there are stable effects. But nobody can predict some effects like distant supernova explosions or sun eruptions.  And one of those things that affect all bodies is time. When radioactive materials decay. That affects the stability and symmetry of the object.  Energy levels affect the existence of things like neutrons. The thorium atom clocks are next-generation tools for time measurement....