We know that Google has announced Google Bard AI to complete Chat GPT. I have compared both chatbots with different types of queries and got different answers from both.
I tested two smart AI chatbot programs called ChatGPT 3.5 and Bard to see which one was better. It was like a battle of brains! In this article, I will share what I found out about their strengths, weaknesses, and personalities. Did Google spend 10 years making a good program? Did ChatGPT do well against the new one? Let’s find out together! Get ready to be amazed!
Math Questions:
I have asked a few math questions. I have got the following answers.
Prompt: The sum of the age of the Grandfather, father, and grandson is 140 years. Grandson’s age in months is equal to grandfather’s age in years and Grandson’s age in days is equal to Father’s age in weeks. Now, Find out the age of all three.
Answer from ChatGPT: It has given the Wrong answer.
Let’s solve the problem step by step.
Let’s assume: Grandfather’s age = G years Father’s age = F years Grandson’s age = S years
According to the given information:
- The sum of their ages is 140 years: G + F + S = 140
- The grandson’s age in months is equal to the grandfather’s age in years: 12S = G
- The grandson’s age in days is equal to the father’s age in weeks: 365S = 7F
Now, we can solve these equations to find the ages.
From equation 2, we can rewrite it as: S = G/12
Substituting this value into equations 1 and 3:
G + F + G/12 = 140 (Equation A) 365(G/12) = 7F (Equation B)
Let’s simplify Equation B: 365G/12 = 7F 365G = 84F (Equation C)
Now, let’s solve the system of equations A and C simultaneously.
From Equation C, we can rewrite it as: G = (84F)/365
Substituting this value into Equation A: (84F)/365 + F + (84F)/365/12 = 140
Multiplying the equation by 365 to remove the denominators: 84F + 365F + 7F = 140 * 365 456F = 140 * 365 F = (140 * 365)/456
Calculating F: F ≈ 112
Now, substituting the value of F back into Equation C to find G: G = (84F)/365 G = (84 * 112)/365
Calculating G: G ≈ 25
Finally, substituting the value of G into Equation 2 to find S: 12S = G 12S = 25
Calculating S: S = 25/12
Calculating S: S ≈ 2.08
So, the ages of the three individuals are approximately: Grandfather: 25 years Father: 112 years Grandson: 2 years (rounded from 2.08)
Answer from Google Bard: It has given the Right answer. Google Bard Is the winner for this query.
Answer: The ages of the grandfather, father, and grandson are 7, 49, and 84, respectively.
Let x be the grandson’s age in years. We know that the sum of the ages of the grandfather, father, and grandson is 140 years, so we have the equation x+12x+90x/13=140. Solving for x, we find that x=7.
Therefore, the grandson’s age is 7 years. The grandfather’s age is 12 times the grandson’s age, or 84 years. The father’s age is 90 times the grandson’s age divided by 13, or 49 years.
Rhyming and Poems Writing Skills
Prompt: write a poem for a kid for Mother’s day, wearing red clothes
Answer from ChatGPT:
Answer from Google Bard:
My Red Dress
Jokes and Comedy Creativity Skills
Prompt: tell me joke on donkey, dog and lion
Answer from ChatGPT:
Answer from Google Bard:
Code development skills
Prompt: write a code async await function in react js
import React, { useState, useEffect } from 'react';
const MyComponent = () => {
const [data, setData] = useState(null);
const [isLoading, setIsLoading] = useState(true);
useEffect(() => {
fetchData();
}, []);
const fetchData = async () => {
try {
const response = await fetch('https://api.example.com/data');
const json = await response.json();
setData(json);
setIsLoading(false);
} catch (error) {
console.error('Error fetching data:', error);
}
};
return (
<div>
{isLoading ? (
<p>Loading...</p>
) : (
<p>Data: {data}</p>
)}
</div>
);
};
export default MyComponent;
Answer from Google Bard:
const fetchData = async () => {
const response = await fetch("https://api.github.com/users/bard");
const data = await response.json();
return data;
};
const App = () => {
const [data, setData] = useState(null);
useEffect(() => {
fetchData().then(setData);
}, []);
return (
<div>
{data && (
<h1>{data.name}</h1>
)}
</div>
);
};
Conclusion:
I am very impressed with Google Bard’s performance. Bard is giving accurate results as compared to chatGPT.
Microsoft already invested in OpenAI Chatgpt to fight with Google. Google did a great job in the AI field.
In the coming days, Google Bard will become more popular as people use it day by day.